version 1.78, 2011/08/20 20:37:31 |
version 1.79, 2011/11/05 09:06:31 |
|
|
off = 0; |
off = 0; |
|
|
memcpy(&gc, &grid_default_cell, sizeof gc); |
memcpy(&gc, &grid_default_cell, sizeof gc); |
colour_set_fg(&gc, options_get_number(&s->options, "message-fg")); |
/* Change colours for command mode. */ |
colour_set_bg(&gc, options_get_number(&s->options, "message-bg")); |
if (c->prompt_mdata.mode == 1) { |
gc.attr |= options_get_number(&s->options, "message-attr"); |
colour_set_fg(&gc, options_get_number(&s->options, "message-command-fg")); |
|
colour_set_bg(&gc, options_get_number(&s->options, "message-command-bg")); |
|
gc.attr |= options_get_number(&s->options, "message-command-attr"); |
|
} else { |
|
colour_set_fg(&gc, options_get_number(&s->options, "message-fg")); |
|
colour_set_bg(&gc, options_get_number(&s->options, "message-bg")); |
|
gc.attr |= options_get_number(&s->options, "message-attr"); |
|
} |
|
|
screen_write_start(&ctx, NULL, &c->status); |
screen_write_start(&ctx, NULL, &c->status); |
|
|
|
|
c->flags |= CLIENT_STATUS; |
c->flags |= CLIENT_STATUS; |
} |
} |
break; |
break; |
|
case MODEKEYEDIT_SWITCHMODE: |
|
c->flags |= CLIENT_STATUS; |
|
break; |
case MODEKEYEDIT_SWITCHMODEAPPEND: |
case MODEKEYEDIT_SWITCHMODEAPPEND: |
|
c->flags |= CLIENT_STATUS; |
|
/* FALLTHROUGH */ |
case MODEKEYEDIT_CURSORRIGHT: |
case MODEKEYEDIT_CURSORRIGHT: |
if (c->prompt_index < size) { |
if (c->prompt_index < size) { |
c->prompt_index++; |
c->prompt_index++; |