Explorar o código

Hide cursor in scroll

Jochen Sprickerhof %!s(int64=6) %!d(string=hai) anos
pai
achega
2ffcf5b56b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      scroll.c

+ 2 - 0
scroll.c

@@ -172,6 +172,8 @@ scrollup(void)
 
 	/* set cursor position */
 	write(STDOUT_FILENO, "\033[0;0H", 6);
+	/* hide cursor */
+	write(STDOUT_FILENO, "\033[?25l", 6);
 
 	/* check if the input line is on the bottom of the screen */
 	if (TAILQ_FIRST(&head) == bottom)