Use cfsetispeed/cfsetospeed to set termios speed members.

pull/1/head
Nicholas Marriott 2009-08-19 14:32:15 +00:00
parent 3f4418d84d
commit c41aa49059
1 changed files with 2 additions and 2 deletions

View File

@ -212,8 +212,8 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
tio.c_oflag = TTYDEF_OFLAG; tio.c_oflag = TTYDEF_OFLAG;
tio.c_lflag = TTYDEF_LFLAG; tio.c_lflag = TTYDEF_LFLAG;
tio.c_cflag = TTYDEF_CFLAG; tio.c_cflag = TTYDEF_CFLAG;
tio.c_ispeed = TTYDEF_SPEED; cfsetispeed(&tio, TTYDEF_SPEED);
tio.c_ospeed = TTYDEF_SPEED; cfsetospeed(&tio, TTYDEF_SPEED);
/* Create the new session. */ /* Create the new session. */
idx = -1 - options_get_number(&global_s_options, "base-index"); idx = -1 - options_get_number(&global_s_options, "base-index");