From: Todd C. Miller Date: Fri, 14 Jul 2017 20:30:43 +0000 (-0600) Subject: don't restore the cursor when setting terminal size, we don't want the cursor to... X-Git-Tag: SUDO_1_8_21^2~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28fe335017174df1592da562d953d30a6853ac05;p=sudo don't restore the cursor when setting terminal size, we don't want the cursor to move --- 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); }