[hackers] [st] Add CHT sequence || "Roberto E. Vargas Caballero"

From: <hg_AT_suckless.org>
Date: Wed, 29 Aug 2012 20:13:26 +0200 (CEST)

changeset: 251:e276071e3efb
tag: tip
user: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>
date: Wed Aug 29 20:05:25 2012 +0200
files: st.c
description:
Add CHT sequence
This sequence performs "Cursor Forward Tabulation <n> tab stops", which
although is not present in vt100 or vt102, xterm accepts it.
---
 st.c |    5 +++++
 1 file changed, 5 insertions(+)
diff -r 92d8c919dd04 -r e276071e3efb st.c
--- a/st.c	Wed Aug 29 20:01:34 2012 +0200
+++ b/st.c	Wed Aug 29 20:05:25 2012 +0200
_AT_@ -1226,6 +1226,11 @@
 		DEFAULT(escseq.arg[1], 1);
 		tmoveto(escseq.arg[1]-1, escseq.arg[0]-1);
 		break;
+	case 'I': /* CHT -- Cursor Forward Tabulation <n> tab stops */
+		DEFAULT(escseq.arg[0], 1);
+		while (escseq.arg[0]--)
+			tputtab();
+		break;
 	case 'J': /* ED -- Clear screen */
 		sel.bx = -1;
 		switch(escseq.arg[0]) {
Received on Wed Aug 29 2012 - 20:13:26 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 29 2012 - 20:24:08 CEST