Restore cursor when exiting alt mode.
If the mouse cursor is changed to a bar or an underline then st will use that when the terminal is first opened. When an application that changes the cursor via escape sequences is executed, e.g. vim which uses a block cursor by default, then that cursor will remain after exiting the program. This change sets the cursor back to default when exiting alt mode.
This commit is contained in:
parent
78e025a0e7
commit
52900255d9
3 changed files with 13 additions and 0 deletions
2
st.c
2
st.c
|
|
@ -1379,6 +1379,8 @@ tswapscreen(void)
|
|||
term.images_alt = im;
|
||||
#endif // SIXEL_PATCH
|
||||
term.mode ^= MODE_ALTSCREEN;
|
||||
if (!IS_SET(MODE_ALTSCREEN))
|
||||
xsetdefaultcursor();
|
||||
tfulldirt();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue