scroll

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

commit 0c291ab3b61f2cd4c520a2b5c18724fc58276d2b
parent 68e4cf9bea15e2ac33224f8b96d7f5ff58ac6e77
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date:   Thu, 23 Apr 2020 23:04:26 +0200

add script for scroll up testing

Diffstat:
Mptty.c | 2+-
Aup.sh | 8++++++++
2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/ptty.c b/ptty.c @@ -130,7 +130,7 @@ main(int argc, char *argv[]) /* handle cursor position request */ if (strcmp("\033[6n", buf) == 0) { - dprintf(mfd, "\033[%d;%dR", 1, 1); + dprintf(mfd, "\033[1;25R", 1, 1); break; } diff --git a/up.sh b/up.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -eu + +jot 50 > tmp.log + +(sleep 1; printf "\033[5;2~"; sleep 1; ) \ + | ktrace -i ./ptty ./scroll ksh -c "tail -fn 50 tmp.log" > out.log