forked from github/abduco
Pass suspend key (ctrl+z) to underlying application
This commit is contained in:
parent
96e37153e0
commit
42bcd723bd
9
client.c
9
client.c
|
|
@ -123,15 +123,6 @@ static int client_mainloop() {
|
|||
pkt.type = MSG_DETACH;
|
||||
client_send_packet(&pkt);
|
||||
return -1;
|
||||
} else if (pkt.u.msg[0] == cur_term.c_cc[VSUSP]) {
|
||||
pkt.type = MSG_DETACH;
|
||||
client_send_packet(&pkt);
|
||||
tcsetattr(0, TCSADRAIN, &orig_term);
|
||||
client_show_cursor();
|
||||
info(NULL);
|
||||
kill(getpid(), SIGTSTP);
|
||||
tcsetattr(0, TCSADRAIN, &cur_term);
|
||||
client.need_resize = true;
|
||||
} else {
|
||||
client_send_packet(&pkt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue