commit 72a1aa0c7b1a71f8a2305861bc89d17d7a897053
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Sat Apr 25 22:56:39 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Sat Apr 25 22:56:39 2020 +0200

    show cursor if we are at the bottom

diff --git a/scroll.c b/scroll.c
index 8cda0f6..722ea01 100644
--- a/scroll.c
+++ b/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);
 }
 

Reply via email to