aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-01-31 19:19:28 -0800
committerKaz Kylheku <kaz@kylheku.com>2025-01-31 19:23:36 -0800
commitca9ae4d1f17ec05f4dd43dd8113661463917a080 (patch)
tree04812ca618c8ad46e050e0bf1f2220542b8bc880
parent5d1cb64e30141c9bcdcae22a01a17cda7bc341b7 (diff)
downloadbasta-ca9ae4d1f17ec05f4dd43dd8113661463917a080.tar.gz
basta-ca9ae4d1f17ec05f4dd43dd8113661463917a080.tar.bz2
basta-ca9ae4d1f17ec05f4dd43dd8113661463917a080.zip
Do not set termios rows in prompt hooks.
- I suspect this is involved in the bug I'm seeing whereby the scroll region goes wonky. It may be preventing our logic from kicking in to fix the situation, by making termios_lines equal LINES and to basta_old_lines.
-rw-r--r--basta.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/basta.sh b/basta.sh
index f562cdd..776ab4e 100644
--- a/basta.sh
+++ b/basta.sh
@@ -123,7 +123,7 @@ basta.initial_prompt_hook()
local exit=$?
stty raw -echo onlcr opost
basta.update_status
- stty sane rows $basta_scroll_lines
+ stty sane
PROMPT_COMMAND='basta.prompt_hook'
}
@@ -134,7 +134,7 @@ basta.prompt_hook()
basta.check_cursor
basta.do_exit_status $exit
basta.update_status
- stty sane rows $basta_scroll_lines
+ stty sane
}
basta.alarm_timer()