commit 76f44ef3453332cace5dffa67d8d0d8eb248d118
parent 7cc66224c3244a8a0c6e18f45730dead23768056
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Tue, 31 Mar 2020 20:49:23 +0200
explicitly detect altscreen
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/scroll.c b/scroll.c
@@ -215,11 +215,13 @@ isaltscreen(char c)
if (strcmp(buf, "?1049h") == 0 ||
strcmp(buf, "?1047h") == 0 ||
- strcmp(buf, "?47h" ) == 0 ||
- strcmp(buf, "?1049l") == 0 ||
+ strcmp(buf, "?47h" ) == 0)
+ alt = true;
+
+ if (strcmp(buf, "?1049l") == 0 ||
strcmp(buf, "?1047l") == 0 ||
strcmp(buf, "?47l" ) == 0)
- alt = !alt;
+ alt = false;
}
break;
}