diff options
author | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-12 22:59:16 -0700 |
---|---|---|
committer | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2025-09-12 22:59:16 -0700 |
commit | d4fa36ec446e758a7c167cb2e9c7ce6a69678853 (patch) | |
tree | fd421bf04887c13f7cc9baa81d34e9b11f219e08 /ptyim.c | |
parent | 9a6954f9720784bc79668bcc6456f6a3f6a0c5a1 (diff) |
Added scroll region restriction
Diffstat (limited to 'ptyim.c')
-rw-r--r-- | ptyim.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -95,6 +95,8 @@ void exit_main() { restore_stdin(); //clears the screen so the im statusline goes away write(STDIN_FILENO,"\033[2J", 4); + //resets scroll region + unrestrict_scroll(STDIN_FILENO); _exit(0); } //hook for when the pty child process dies |