diff options
Diffstat (limited to 'linenoise')
-rw-r--r-- | linenoise/linenoise.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linenoise/linenoise.c b/linenoise/linenoise.c index 48d7e0b7..41f9066c 100644 --- a/linenoise/linenoise.c +++ b/linenoise/linenoise.c @@ -837,6 +837,17 @@ static void show_help(lino_t *l) } } continue; + case CTL('Z'): + disable_raw_mode(l); + raise(SIGTSTP); + enable_raw_mode(l); + i -= 1; + continue; + case CTL('L'): + lino_clear_screen(l); + l->need_refresh = 1; + i -= 1; + continue; default: continue; } |