Implement insert mode.

This commit is contained in:
Michael Jumper 2013-05-26 00:01:47 -07:00
parent 2f7e0eec41
commit 417642eb8e

View File

@ -203,6 +203,11 @@ int guac_terminal_echo(guac_terminal* term, char c) {
}
/* If insert mode, shift other characters right by 1 */
if (term->insert_mode)
guac_terminal_copy_columns(term, term->cursor_row,
term->cursor_col, term->term_width-2, 1);
/* Write character */
guac_terminal_set(term,
term->cursor_row,