From 28fe335017174df1592da562d953d30a6853ac05 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 14 Jul 2017 14:30:43 -0600 Subject: [PATCH] don't restore the cursor when setting terminal size, we don't want the cursor to move --- plugins/sudoers/sudoreplay.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/sudoers/sudoreplay.c b/plugins/sudoers/sudoreplay.c index 714f10201..953245e8f 100644 --- a/plugins/sudoers/sudoreplay.c +++ b/plugins/sudoers/sudoreplay.c @@ -603,7 +603,6 @@ static bool xterm_set_size(int rows, int cols) { const char setsize_fmt[] = "\033[8;%d;%dt"; - const char restore_cursor[] = "\0338"; int len, new_rows, new_cols; bool ret = false; char buf[1024]; @@ -626,8 +625,6 @@ xterm_set_size(int rows, int cols) if (rows == new_rows && cols == new_cols) ret = true; - /* Restore cursor */ - ignore_result(write(ttyfd, restore_cursor, strlen(restore_cursor))); done: debug_return_bool(ret); } -- 2.40.0