From 01587b1b14ff35274f03e21c66aa72bf483e46f5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 2 Dec 2017 21:32:24 -0700 Subject: [PATCH] Add missing carriage return before prompt when replay is done. --- plugins/sudoers/sudoreplay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index 28b5c0bc7..9d182c3e3 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -746,6 +746,7 @@ restore_terminal_size(void) if (terminal_was_resized) { /* We are still in raw mode, hence the carriage return. */ + putchar('\r'); printf(U_("Replay finished, press any key to restore the terminal.")); fflush(stdout); (void)getchar(); -- 2.40.0