version 1.23, 2009/11/27 09:41:03 |
version 1.24, 2009/12/03 22:50:10 |
|
|
ictx->string_len = 0; |
ictx->string_len = 0; |
ictx->string_buf = NULL; |
ictx->string_buf = NULL; |
|
|
memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell); |
memcpy(&ictx->cell, &grid_default_cell, sizeof ictx->cell); |
|
|
memcpy(&ictx->saved_cell, &grid_default_cell, sizeof ictx->saved_cell); |
memcpy(&ictx->saved_cell, &grid_default_cell, sizeof ictx->saved_cell); |
ictx->saved_cx = 0; |
ictx->saved_cx = 0; |
|
|
} |
} |
|
|
#if 0 |
#if 0 |
if (INPUT_C1CONTROL(ch)) { |
if (INPUT_C1CONTROL(ch)) { |
ch -= 0x40; |
ch -= 0x40; |
if (ch == '[') |
if (ch == '[') |
input_state(ictx, input_state_sequence_first); |
input_state(ictx, input_state_sequence_first); |
|
|
|
|
if (ch > 0x7f && options_get_number(&wp->window->options, "utf8")) { |
if (ch > 0x7f && options_get_number(&wp->window->options, "utf8")) { |
if (utf8_open(&ictx->utf8data, ch)) { |
if (utf8_open(&ictx->utf8data, ch)) { |
log_debug2("-- utf8 size %zu: %zu: %hhu (%c)", |
log_debug2("-- utf8 size %zu: %zu: %hhu (%c)", |
ictx->utf8data.size, ictx->off, ch, ch); |
ictx->utf8data.size, ictx->off, ch, ch); |
input_state(ictx, input_state_utf8); |
input_state(ictx, input_state_utf8); |
return; |
return; |
|
|
return; |
return; |
if (n != 0) |
if (n != 0) |
return; |
return; |
|
|
bufferevent_write(wp->event, "\033[?1;2c", (sizeof "\033[?1;2c") - 1); |
bufferevent_write(wp->event, "\033[?1;2c", (sizeof "\033[?1;2c") - 1); |
} |
} |
|
|
|
|
log_debug("kcursor on"); |
log_debug("kcursor on"); |
break; |
break; |
case 3: /* DECCOLM */ |
case 3: /* DECCOLM */ |
screen_write_cursormove(&ictx->ctx, 0, 0); |
screen_write_cursormove(&ictx->ctx, 0, 0); |
screen_write_clearscreen(&ictx->ctx); |
screen_write_clearscreen(&ictx->ctx); |
break; |
break; |
case 25: /* TCEM */ |
case 25: /* TCEM */ |
|
|
log_debug("kcursor off"); |
log_debug("kcursor off"); |
break; |
break; |
case 3: /* DECCOLM */ |
case 3: /* DECCOLM */ |
screen_write_cursormove(&ictx->ctx, 0, 0); |
screen_write_cursormove(&ictx->ctx, 0, 0); |
screen_write_clearscreen(&ictx->ctx); |
screen_write_clearscreen(&ictx->ctx); |
break; |
break; |
case 25: /* TCEM */ |
case 25: /* TCEM */ |
|
|
sx = screen_size_x(s); |
sx = screen_size_x(s); |
sy = screen_size_y(s); |
sy = screen_size_y(s); |
|
|
/* |
/* |
* Exit alternative screen mode and restore the copied |
* Exit alternative screen mode and restore the copied |
* grid. |
* grid. |
*/ |
*/ |
|
|
* Turn history back on (so resize can use it) and then |
* Turn history back on (so resize can use it) and then |
* resize back to the current size. |
* resize back to the current size. |
*/ |
*/ |
wp->base.grid->flags |= GRID_HISTORY; |
wp->base.grid->flags |= GRID_HISTORY; |
if (sy > wp->saved_grid->sy) |
if (sy > wp->saved_grid->sy) |
screen_resize(s, sx, sy); |
screen_resize(s, sx, sy); |
|
|
|
|
if (ARRAY_LENGTH(&ictx->args) == 0) { |
if (ARRAY_LENGTH(&ictx->args) == 0) { |
attr = gc->attr; |
attr = gc->attr; |
memcpy(gc, &grid_default_cell, sizeof *gc); |
memcpy(gc, &grid_default_cell, sizeof *gc); |
gc->attr |= (attr & GRID_ATTR_CHARSET); |
gc->attr |= (attr & GRID_ATTR_CHARSET); |
return; |
return; |
} |
} |
|
|