diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-01-31 19:19:28 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-01-31 19:23:36 -0800 |
commit | ca9ae4d1f17ec05f4dd43dd8113661463917a080 (patch) | |
tree | 04812ca618c8ad46e050e0bf1f2220542b8bc880 | |
parent | 5d1cb64e30141c9bcdcae22a01a17cda7bc341b7 (diff) | |
download | basta-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.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |