71 |
return 1; |
return 1; |
72 |
} |
} |
73 |
|
|
74 |
extern QEDisplay tty_dpy; |
static QEDisplay tty_dpy; |
75 |
|
|
76 |
static int term_init(QEditScreen *s, int w, int h) |
static int term_init(QEditScreen *s, int w, int h) |
77 |
{ |
{ |
301 |
if (s->charset == &charset_utf8) { |
if (s->charset == &charset_utf8) { |
302 |
if (ts->utf8_state == 0) { |
if (ts->utf8_state == 0) { |
303 |
const char *p; |
const char *p; |
304 |
p = ts->buf; |
p = (const char *)ts->buf; |
305 |
ch = utf8_decode(&p); |
ch = utf8_decode(&p); |
306 |
} else { |
} else { |
307 |
ts->utf8_state = utf8_length[ts->buf[0]] - 1; |
ts->utf8_state = utf8_length[ts->buf[0]] - 1; |