]> granicus.if.org Git - sudo/commitdiff
don't restore the cursor when setting terminal size, we don't want the cursor to...
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 14 Jul 2017 20:30:43 +0000 (14:30 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 14 Jul 2017 20:30:43 +0000 (14:30 -0600)
plugins/sudoers/sudoreplay.c

index 714f10201aafcdd5f467710ed5b77796ce446367..953245e8f399d160b420a3086419a2d40e6bcea0 100644 (file)
@@ -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);
 }