tSave cursor position in terminal reset - st - [fork] customized build of st, t… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit ee3e0a9fd032bb35eea5c46fc0a9efcd6a80579a | |
parent ba9d0365ac7e138b643d7179457f8465a1dc1191 | |
Author: Roberto E. Vargas Caballero <[email protected]> | |
Date: Thu, 8 Nov 2012 17:20:15 +0100 | |
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(+) | |
Diffstat: | |
M st.c | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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 |