Explorar o código

Draw cursor at end of scrolldown

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

+ 2 - 0
scroll.c

@@ -201,6 +201,8 @@ scrolldown(void)
 		bottom = TAILQ_PREV(bottom, tailhead, entries);
 		write(STDOUT_FILENO, bottom->buf, bottom->size);
 	}
+	if (bottom == TAILQ_FIRST(&head))
+		write(STDOUT_FILENO, "\033[?25h", 6);
 }
 
 int