Restore terminal before printing info messages

This commit is contained in:
Marc André Tanner 2014-03-08 20:03:11 +01:00
parent 06e4d23bd1
commit f9f7eb63af
1 changed files with 1 additions and 0 deletions

View File

@ -328,6 +328,7 @@ static bool attach_session(const char *name) {
tcsetattr(0, TCSADRAIN, &cur_term);
int status = client_mainloop();
client_restore_terminal();
if (status == -1) {
info("detached");
} else if (status == -EIO) {