diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-10-06 00:10:40 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-10-06 00:10:40 +0100 |
commit | 01a47525030ec6fa4f53dc2c0cb6786f63881679 (patch) | |
tree | c259988018bfb2dfd387f7db8a9e22b832f05f6e /client.c | |
parent | d66cbf20f7ddeca5e350a79ffaf3a18e1da231fb (diff) | |
download | rtmux-01a47525030ec6fa4f53dc2c0cb6786f63881679.tar.gz rtmux-01a47525030ec6fa4f53dc2c0cb6786f63881679.tar.bz2 rtmux-01a47525030ec6fa4f53dc2c0cb6786f63881679.zip |
Merge IDENTIFY_* flags with CLIENT_* flags.
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -236,7 +236,7 @@ client_main(int argc, char **argv, int flags) setblocking(STDIN_FILENO, 0); event_set(&client_stdin, STDIN_FILENO, EV_READ|EV_PERSIST, client_stdin_callback, NULL); - if (flags & IDENTIFY_TERMIOS) { + if (flags & CLIENT_CONTROLCONTROL) { if (tcgetattr(STDIN_FILENO, &saved_tio) != 0) { fprintf(stderr, "tcgetattr failed: %s\n", strerror(errno)); @@ -293,14 +293,12 @@ client_main(int argc, char **argv, int flags) ppid = getppid(); if (client_exittype == MSG_DETACHKILL && ppid > 1) kill(ppid, SIGHUP); - } else if (flags & IDENTIFY_TERMIOS) { - if (flags & IDENTIFY_CONTROL) { - if (client_exitreason != CLIENT_EXIT_NONE) - printf("%%exit %s\n", client_exit_message()); - else - printf("%%exit\n"); - printf("\033\\"); - } + } else if (flags & CLIENT_CONTROLCONTROL) { + if (client_exitreason != CLIENT_EXIT_NONE) + printf("%%exit %s\n", client_exit_message()); + else + printf("%%exit\n"); + printf("\033\\"); tcsetattr(STDOUT_FILENO, TCSAFLUSH, &saved_tio); } setblocking(STDIN_FILENO, 1); |