mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +08:00
rl_refresh_line(): new (undocumented) readline compat fn
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
29a71a53d0
commit
779db8817e
@ -96,6 +96,7 @@ extern void rl_deprep_terminal (void);
|
||||
|
||||
extern int rl_getc(void);
|
||||
extern int rl_insert_text (const char *text);
|
||||
extern int rl_refresh_line (int ignore1, int ignore2);
|
||||
|
||||
extern char *readline (const char *prompt);
|
||||
|
||||
|
@ -534,6 +534,12 @@ static el_status_t redisplay(void)
|
||||
return CSmove;
|
||||
}
|
||||
|
||||
int rl_refresh_line(int ignore1 __attribute__((unused)), int ignore2 __attribute__((unused)))
|
||||
{
|
||||
redisplay();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static el_status_t toggle_meta_mode(void)
|
||||
{
|
||||
rl_meta_chars = ! rl_meta_chars;
|
||||
|
Loading…
Reference in New Issue
Block a user