forked from github/abduco
Restore terminal before printing info messages
This commit is contained in:
parent
06e4d23bd1
commit
f9f7eb63af
1
abduco.c
1
abduco.c
|
|
@ -328,6 +328,7 @@ static bool attach_session(const char *name) {
|
||||||
tcsetattr(0, TCSADRAIN, &cur_term);
|
tcsetattr(0, TCSADRAIN, &cur_term);
|
||||||
|
|
||||||
int status = client_mainloop();
|
int status = client_mainloop();
|
||||||
|
client_restore_terminal();
|
||||||
if (status == -1) {
|
if (status == -1) {
|
||||||
info("detached");
|
info("detached");
|
||||||
} else if (status == -EIO) {
|
} else if (status == -EIO) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue