add script for scroll up testing - scroll - scrollbackbuffer program for st
 (HTM) git clone git://git.suckless.org/scroll
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0c291ab3b61f2cd4c520a2b5c18724fc58276d2b
 (DIR) parent 68e4cf9bea15e2ac33224f8b96d7f5ff58ac6e77
 (HTM) Author: Jan Klemkow <j.klemkow@wemelug.de>
       Date:   Thu, 23 Apr 2020 23:04:26 +0200
       
       add script for scroll up testing
       
       Diffstat:
         M ptty.c                              |       2 +-
         A up.sh                               |       8 ++++++++
       
       2 files changed, 9 insertions(+), 1 deletion(-)
       ---
 (DIR) 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;
                                }
        
 (DIR) 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