Преглед изворни кода

show cursor if we are at the bottom

Jochen Sprickerhof пре 5 година
родитељ
комит
72a1aa0c7b
1 измењених фајлова са 3 додато и 2 уклоњено
  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);
 }