1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge remote-tracking branch 'stormc/readline-clrscr' into readline

This commit is contained in:
James Booth 2015-02-08 21:35:19 +00:00
commit 916ee1dc13

View File

@ -86,6 +86,7 @@ static void _inp_write(char *line, int offset);
static int _inp_rl_getc(FILE *stream);
static void _inp_rl_linehandler(char *line);
static int _inp_rl_tab_handler(int count, int key);
static int _inp_rl_clear_handler(int count, int key);
static int _inp_rl_win1_handler(int count, int key);
static int _inp_rl_win2_handler(int count, int key);
static int _inp_rl_win3_handler(int count, int key);
@ -384,6 +385,7 @@ _inp_rl_startup_hook(void)
rl_bind_keyseq("\\e[6~", _inp_rl_pagedown_handler);
rl_bind_key('\t', _inp_rl_tab_handler);
rl_bind_key(CTRL('L'), _inp_rl_clear_handler);
return 0;
}
@ -409,6 +411,13 @@ _inp_rl_getc(FILE *stream)
return ch;
}
static int
_inp_rl_clear_handler(int count, int key)
{
ui_clear_current();
return 0;
}
static int
_inp_rl_tab_handler(int count, int key)
{