Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ba9d036
)
Save cursor position in terminal reset
author
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Thu, 8 Nov 2012 16:20:15 +0000
(17:20 +0100)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Thu, 8 Nov 2012 16:20:15 +0000
(17:20 +0100)
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(+)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
9864442
..
4a77d71
100644
(file)
--- a/
st.c
+++ b/
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