scroll

scrollbackbuffer program for st
git clone git://git.suckless.org//gitrepos
Log | Files | Refs

commit f9780ebc81ccdc1d41416257d2e3d5fcf2ef9e71
parent 82d78a619aa999309956871b65c63e2e845b2f15
Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date:   Mon, 17 Feb 2020 20:51:02 +0100

Draw cursor at end of scrolldown

Diffstat:
Mscroll.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/scroll.c b/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