mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 21:06:23 +00:00
Save cursor position in terminal reset
After terminal reset saved terminal position is reset to 0, allowing know where cursor will go in next restore cursor operation. --- st.c | 2 ++ 1 file changed, 2 insertions(+)
This commit is contained in:
parent
ba9d0365ac
commit
ee3e0a9fd0
1 changed files with 2 additions and 0 deletions
2
st.c
2
st.c
|
@ -1076,6 +1076,8 @@ treset(void) {
|
|||
term.mode = MODE_WRAP;
|
||||
|
||||
tclearregion(0, 0, term.col-1, term.row-1);
|
||||
tmoveto(0, 0);
|
||||
tcursor(CURSOR_SAVE);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue