diff options
Diffstat (limited to 'readline/terminal.c')
-rw-r--r-- | readline/terminal.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/readline/terminal.c b/readline/terminal.c index f5326387218..a1fcc25400e 100644 --- a/readline/terminal.c +++ b/readline/terminal.c @@ -236,6 +236,16 @@ _rl_set_screen_size (rows, cols) screenchars = screenwidth * screenheight; } +void +rl_resize_terminal () +{ + if (readline_echoing_p) + { + _rl_get_screen_size (fileno (rl_instream), 1); + _rl_redisplay_after_sigwinch (); + } +} + struct _tc_string { char *tc_var; char **tc_value; |