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) {