Don't need ttydefchars here.

This commit is contained in:
Nicholas Marriott 2007-10-23 11:25:32 +00:00
parent 9a086da081
commit ab02144e3d
2 changed files with 3 additions and 14 deletions

4
tmux.h
View File

@ -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>
@ -26,11 +26,9 @@
#include <poll.h>
#include <stdarg.h>
#include <stdio.h>
#include <termios.h>
#include "array.h"
extern cc_t ttydefchars[];
extern char *__progname;
#ifndef __dead

View File

@ -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>
@ -62,7 +62,6 @@ window_create(
{
struct window *w;
struct winsize ws;
struct termios tio;
int fd, mode;
char *ptr, *copy;
const char **entry;
@ -71,15 +70,7 @@ window_create(
ws.ws_col = sx;
ws.ws_row = sy;
memset(&tio, 0, sizeof tio);
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)) {
switch (forkpty(&fd, NULL, NULL, &ws)) {
case -1:
return (NULL);
case 0: