mirror of
https://github.com/tmux/tmux.git
synced 2025-01-13 03:48:51 +00:00
Don't need ttydefchars here.
This commit is contained in:
parent
9a086da081
commit
ab02144e3d
4
tmux.h
4
tmux.h
@ -1,4 +1,4 @@
|
|||||||
/* $Id: tmux.h,v 1.65 2007-10-23 10:48:23 nicm Exp $ */
|
/* $Id: tmux.h,v 1.66 2007-10-23 11:25:32 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -26,11 +26,9 @@
|
|||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <termios.h>
|
|
||||||
|
|
||||||
#include "array.h"
|
#include "array.h"
|
||||||
|
|
||||||
extern cc_t ttydefchars[];
|
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
|
|
||||||
#ifndef __dead
|
#ifndef __dead
|
||||||
|
13
window.c
13
window.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window.c,v 1.20 2007-10-19 20:47:09 nicm Exp $ */
|
/* $Id: window.c,v 1.21 2007-10-23 11:25:32 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -62,7 +62,6 @@ window_create(
|
|||||||
{
|
{
|
||||||
struct window *w;
|
struct window *w;
|
||||||
struct winsize ws;
|
struct winsize ws;
|
||||||
struct termios tio;
|
|
||||||
int fd, mode;
|
int fd, mode;
|
||||||
char *ptr, *copy;
|
char *ptr, *copy;
|
||||||
const char **entry;
|
const char **entry;
|
||||||
@ -71,15 +70,7 @@ window_create(
|
|||||||
ws.ws_col = sx;
|
ws.ws_col = sx;
|
||||||
ws.ws_row = sy;
|
ws.ws_row = sy;
|
||||||
|
|
||||||
memset(&tio, 0, sizeof tio);
|
switch (forkpty(&fd, NULL, NULL, &ws)) {
|
||||||
tio.c_iflag = TTYDEF_IFLAG;
|
|
||||||
tio.c_oflag = TTYDEF_OFLAG;
|
|
||||||
tio.c_lflag = TTYDEF_LFLAG;
|
|
||||||
tio.c_cflag = TTYDEF_CFLAG;
|
|
||||||
memcpy(&tio.c_cc, ttydefchars, sizeof tio.c_cc);
|
|
||||||
cfsetspeed(&tio, TTYDEF_SPEED);
|
|
||||||
|
|
||||||
switch (forkpty(&fd, NULL, &tio, &ws)) {
|
|
||||||
case -1:
|
case -1:
|
||||||
return (NULL);
|
return (NULL);
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user