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

Diff of /qemacs/tty.c

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

revision 1.7 by chqrlie, Mon May 9 02:51:04 2005 UTC revision 1.8 by chqrlie, Mon May 9 03:19:36 2005 UTC
# Line 108  static int term_init(QEditScreen *s, int Line 108  static int term_init(QEditScreen *s, int
108      /* test UTF8 support by looking at the cursor position (idea from      /* test UTF8 support by looking at the cursor position (idea from
109         Ricardas Cepas <rch@pub.osf.lt>). Since uClibc actually tests         Ricardas Cepas <rch@pub.osf.lt>). Since uClibc actually tests
110         to ensure that the format string is a valid multibyte sequence         to ensure that the format string is a valid multibyte sequence
111         in the current locale (ANSI/ISO C99), use a format specifer of         in the current locale (ANSI/ISO C99), use a format specifier of
112         %s to avoid printf() failing with EILSEQ. */         %s to avoid printf() failing with EILSEQ. */
113      {      {
114          int y, x;          int y, x;
# Line 639  static void term_flush(QEditScreen *s) Line 639  static void term_flush(QEditScreen *s)
639                              buf[0] = '.';                              buf[0] = '.';
640                              buf[1] = '\0';                              buf[1] = '\0';
641                          } else {                          } else {
642                              /* need a kludge for linedrawing chars */                              unicode_to_charset(buf, cc, s->charset);
                             if (cc == 0x2500 || cc == 'x') {  
                                 strcpy(buf, "\016x\017");  
                             } else {  
                                 unicode_to_charset(buf, cc, s->charset);  
                             }  
643                          }                          }
644                          if (x != s->width - 1 || y != s->height - 1)                          if (x != s->width - 1 || y != s->height - 1)
645                              printf("%s", buf);                              printf("%s", buf);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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