Bläddra i källkod

show cursor if we are at the bottom

Jochen Sprickerhof 5 år sedan
förälder
incheckning
72a1aa0c7b
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      scroll.c

+ 3 - 2
scroll.c

@@ -284,9 +284,10 @@ redraw()
 		write(STDOUT_FILENO, bottom->buf, bottom->size);
 	}
 
-	if (bottom == TAILQ_FIRST(&head))
+	if (bottom == TAILQ_FIRST(&head)) {
 		write(STDOUT_FILENO, "\n", 1);
-	else
+		write(STDOUT_FILENO, "\033[?25h", 6);	/* show cursor */
+	} else
 		bottom = TAILQ_NEXT(bottom, entries);
 }