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: Sun, 20 Apr 2008 11:55:49 +0000

CVSROOT:        /cvsroot/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        08/04/20 11:55:49

Modified files:
        .              : tty.c 

Log message:
        use proper format in fscanf

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

Patches:
Index: tty.c
===================================================================
RCS file: /cvsroot/qemacs/qemacs/tty.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -b -r1.48 -r1.49
--- tty.c       15 Apr 2008 23:24:03 -0000      1.48
+++ tty.c       20 Apr 2008 11:55:49 -0000      1.49
@@ -207,7 +207,7 @@
         TTY_FPRINTF(s->STDOUT, "%s",
                     "\030\032" "\r\xC3\xA9" "\033[6n\033D");
         fflush(s->STDOUT);
-        n = fscanf(s->STDIN, "\033[%u;%u", &y, &x);  /* get cursor position */
+        n = fscanf(s->STDIN, "\033[%d;%d", &y, &x);  /* get cursor position */
         TTY_FPRINTF(s->STDOUT, "\r   \r");        /* go back, erase 3 chars */
         if (n == 2 && x == 2) {
             s->charset = &charset_utf8;




reply via email to

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