/[qemacs]/qemacs/tty.c
ViewVC logotype

Diff of /qemacs/tty.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by chqrlie, Mon May 9 03:32:19 2005 UTC revision 1.11 by chqrlie, Mon May 9 06:21:49 2005 UTC
# Line 113  static int term_init(QEditScreen *s, int Line 113  static int term_init(QEditScreen *s, int
113      {      {
114          int y, x;          int y, x;
115                    
116          printf("%s", "\030\032" "\r\xEF\x81\x81" "\033[6n\033D");          /*               ^X  ^Z    ^M   \170101  */
117            //printf("%s", "\030\032" "\r\xEF\x81\x81" "\033[6n\033D");
118            /* Just print utf-8 encoding for eacute and check cursor position */
119            printf("%s", "\030\032" "\r\xC3\xA9" "\033[6n\033D");
120          scanf("\033[%u;%u", &y, &x);/* get cursor position */          scanf("\033[%u;%u", &y, &x);/* get cursor position */
121          printf("\033[1F" "\033[%uX", (x-1)); /* go back; erase 1 or 3 char */          printf("\033[1F" "\033[%uX", (x-1)); /* go back; erase 1 or 3 char */
122          if (x == 2) {          if (x == 2) {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26