scroll

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

commit 200c1a92277ddc3daf0cde1f4957090f5887b423
parent bbdc448cf73235f0f9a9c02b679c9e6e46bfc5fd
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date:   Mon, 20 Apr 2020 22:08:47 +0200

add additional information in die calls for debugging

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

diff --git a/scroll.c b/scroll.c @@ -231,10 +231,10 @@ getcursorposition(int *x, int *y) input[n] = '\0'; if (sscanf(input, "\033[%d;%dR", x, y) != 2) - die("parsing cursor position"); + die("parsing cursor position: %s", input); if (x <= 0 || y <= 0) - die("invalid cursor position"); + die("invalid cursor position: x=%d y=%d", x, y); } void