st

fork of suckless's simple terminal
Index Commits Files Refs README LICENSE
commit c3b6345595c6b5ec5925544a2f462458f16cbf6a
parent 2f215654a4b27eb573fb6551d28bdf760e95ef58
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 24 Sep 2012 10:28:35 +0200

Fix LNM sequence

LNM sequence is a standard ANSI mode, not a DEC private mode.
---
 st.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Diffstat:
Mst.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/st.c b/st.c
@@ -1292,9 +1292,6 @@ tsetmode(bool priv, bool set, int *args, int narg) {
             case 7:
                 MODBIT(term.mode, set, MODE_WRAP);
                 break;
-            case 20:
-                MODBIT(term.mode, set, MODE_CRLF);
-                break;
             case 12: /* att610 -- Start blinking cursor (IGNORED) */
                 break;
             case 25:
@@ -1335,6 +1332,9 @@ tsetmode(bool priv, bool set, int *args, int narg) {
             case 4:
                 MODBIT(term.mode, set, MODE_INSERT);
                 break;
+            case 20:
+                MODBIT(term.mode, set, MODE_CRLF);
+                break;
             default:
                 fprintf(stderr,
                     "erresc: unknown set/reset mode %d\n",