diff options
| author | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-11-08 17:20:15 +0100 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2012-11-08 17:20:15 +0100 |
| commit | ee3e0a9fd032bb35eea5c46fc0a9efcd6a80579a (patch) | |
| tree | 4929a2ec9c73d0f1f3961feea56cbef9669b6abd | |
| parent | Clarify some or exclusive expressions (diff) | |
| download | st-ee3e0a9fd032bb35eea5c46fc0a9efcd6a80579a.tar.gz st-ee3e0a9fd032bb35eea5c46fc0a9efcd6a80579a.zip | |
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(+)
| -rw-r--r-- | st.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -1076,6 +1076,8 @@ treset(void) { | |||
| 1076 | term.mode = MODE_WRAP; | 1076 | term.mode = MODE_WRAP; |
| 1077 | 1077 | ||
| 1078 | tclearregion(0, 0, term.col-1, term.row-1); | 1078 | tclearregion(0, 0, term.col-1, term.row-1); |
| 1079 | tmoveto(0, 0); | ||
| 1080 | tcursor(CURSOR_SAVE); | ||
| 1079 | } | 1081 | } |
| 1080 | 1082 | ||
| 1081 | void | 1083 | void |
