[hackers] [st] Fix VPR sequence || "Roberto E. Vargas Caballero"

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

changeset: 392:69b94b0f2e32
user: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>
date: Thu Nov 08 17:21:24 2012 +0100
files: st.c
description:
Fix VPR sequence
VPR stands for Move cursor down a number of rows, and the code was moving
the cursor up instead of moving it down.
---
 st.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff -r dafe8e46feea -r 69b94b0f2e32 st.c
--- a/st.c	Thu Nov 08 17:21:10 2012 +0100
+++ b/st.c	Thu Nov 08 17:21:24 2012 +0100
_AT_@ -1562,11 +1562,11 @@
 		tinsertblank(csiescseq.arg[0]);
 		break;
 	case 'A': /* CUU -- Cursor <n> Up */
-	case 'e':
 		DEFAULT(csiescseq.arg[0], 1);
 		tmoveto(term.c.x, term.c.y-csiescseq.arg[0]);
 		break;
 	case 'B': /* CUD -- Cursor <n> Down */
+	case 'e': /* VPR --Cursor <n> Down */
 		DEFAULT(csiescseq.arg[0], 1);
 		tmoveto(term.c.x, term.c.y+csiescseq.arg[0]);
 		break;
_AT_@ -1575,7 +1575,7 @@
 			ttywrite(VT102ID, sizeof(VT102ID) - 1);
 		break;
 	case 'C': /* CUF -- Cursor <n> Forward */
-	case 'a':
+	case 'a': /* HPR -- Cursor <n> Forward */
 		DEFAULT(csiescseq.arg[0], 1);
 		tmoveto(term.c.x+csiescseq.arg[0], term.c.y);
 		break;
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:11 CET