[hackers] [st] removed old VT52 escapes, fixed VT100 IND. || Aurélien Aptel

From: <hg_AT_suckless.org>
Date: Sun, 29 Aug 2010 23:12:15 +0000 (UTC)

changeset: 105:ecca46c83692
parent: 103:6e6e6e17fc2d
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Mon Aug 30 01:19:05 2010 +0200
files: st.c
description:
removed old VT52 escapes, fixed VT100 IND.

diff -r 6e6e6e17fc2d -r ecca46c83692 st.c
--- a/st.c Sun Aug 29 20:12:44 2010 +0200
+++ b/st.c Mon Aug 30 01:19:05 2010 +0200
@@ -867,20 +867,11 @@
                         case '(':
                                 term.esc |= ESC_ALTCHARSET;
                                 break;
- case 'A':
- tmoveto(term.c.x, term.c.y-1);
- term.esc = 0;
- break;
- case 'B':
- tmoveto(term.c.x, term.c.y+1);
- term.esc = 0;
- break;
- case 'C':
- tmoveto(term.c.x+1, term.c.y);
- term.esc = 0;
- break;
- case 'D': /* XXX: CUP (VT100) or IND (VT52) ... */
- tmoveto(term.c.x-1, term.c.y);
+ case 'D': /* IND -- Linefeed */
+ if(term.c.y == term.bot)
+ tscrollup(1);
+ else
+ tmoveto(term.c.x, term.c.y+1);
                                 term.esc = 0;
                                 break;
                         case 'E': /* NEL -- Next line */
Received on Mon Aug 30 2010 - 01:12:15 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 30 2010 - 01:24:04 CEST