[hackers] [st] Save cursor position in terminal reset || "Roberto E. Vargas Caballero"

From: <hg_AT_suckless.org>
Date: Thu, 8 Nov 2012 17:24:47 +0100 (CET)

changeset: 390:d36ee84e4216
user: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>
date: Thu Nov 08 17:20:15 2012 +0100
files: st.c
description:
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(+)
diff -r bf2606eb989a -r d36ee84e4216 st.c
--- a/st.c	Thu Nov 08 17:17:26 2012 +0100
+++ b/st.c	Thu Nov 08 17:20:15 2012 +0100
_AT_@ -1076,6 +1076,8 @@
 	term.mode = MODE_WRAP;
 
 	tclearregion(0, 0, term.col-1, term.row-1);
+	tmoveto(0, 0);
+	tcursor(CURSOR_SAVE);
 }
 
 void
Received on Thu Nov 08 2012 - 17:24:47 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 08 2012 - 17:36:09 CET