mirror of
https://github.com/tmux/tmux.git
synced 2025-04-29 01:08:49 +00:00
Use cfsetispeed/cfsetospeed to set termios speed members.
This commit is contained in:
parent
3f4418d84d
commit
c41aa49059
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user