qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs tty.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs tty.c
Date: Wed, 07 Feb 2007 23:27:33 +0000

CVSROOT:        /cvsroot/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        07/02/07 23:27:33

Modified files:
        .              : tty.c 

Log message:
        delayed terminal utf8 capability detection so qe no longer leaves 2 
weird character on terminal upon leaving

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/tty.c?cvsroot=qemacs&r1=1.20&r2=1.21

Patches:
Index: tty.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/tty.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- tty.c       31 Dec 2006 19:34:01 -0000      1.20
+++ tty.c       7 Feb 2007 23:27:33 -0000       1.21
@@ -160,6 +160,22 @@
     
     tcsetattr(fileno(s->STDIN), TCSANOW, &tty);
 
+    /* First switch to full screen mode */
+#if 0
+    printf("\033[?1048h\033[?1047h"     /* enable cup */
+           "\033)0\033(B"       /* select character sets in block 0 and 1 */
+           "\017");             /* shift out */
+#else
+    FPRINTF(s->STDOUT,
+            "\033[?1049h"       /* enter_ca_mode */
+            "\033[m\033(B"      /* exit_attribute_mode */
+            "\033[4l"          /* exit_insert_mode */
+            "\033[?7h"         /* enter_am_mode */
+            "\033[39;49m"       /* orig_pair */
+            "\033[?1h\033="     /* keypad_xmit */
+           );
+#endif
+
     s->charset = &charset_vt100;
 
     /* test UTF8 support by looking at the cursor position (idea from
@@ -182,20 +198,6 @@
             s->charset = &charset_utf8;
         }
     }
-#if 0
-    printf("\033[?1048h\033[?1047h"     /* enable cup */
-           "\033)0\033(B"       /* select character sets in block 0 and 1 */
-           "\017");             /* shift out */
-#else
-    FPRINTF(s->STDOUT,
-            "\033[?1049h"       /* enter_ca_mode */
-            "\033[m\033(B"      /* exit_attribute_mode */
-            "\033[4l"          /* exit_insert_mode */
-            "\033[?7h"         /* enter_am_mode */
-            "\033[39;49m"       /* orig_pair */
-            "\033[?1h\033="     /* keypad_xmit */
-           );
-#endif
     atexit(tty_term_exit);
 
     sig.sa_handler = tty_resize;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]