From f9f7eb63afb5fe5cb52f2822658272e204c54196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 8 Mar 2014 20:03:11 +0100 Subject: [PATCH] Restore terminal before printing info messages --- abduco.c | 1 + 1 file changed, 1 insertion(+) diff --git a/abduco.c b/abduco.c index ecb71f4..044ee85 100644 --- a/abduco.c +++ b/abduco.c @@ -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) {