diff options
| author | Julian Hurst <ark@mansus.space> | 2022-12-16 11:31:21 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2022-12-16 11:31:21 +0100 |
| commit | 341e258208647cacca59c324fc658ac9c068c7c5 (patch) | |
| tree | 8e3ad7872117191d824ba328a72db82475bac98c /handlers.ha | |
| parent | b9cf4251f8dcd843bba3a984ac87950fc78eb7f3 (diff) | |
| download | ilhare-341e258208647cacca59c324fc658ac9c068c7c5.tar.gz | |
Add -m flag
Diffstat (limited to 'handlers.ha')
| -rw-r--r-- | handlers.ha | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/handlers.ha b/handlers.ha index c4f28db..fb6837e 100644 --- a/handlers.ha +++ b/handlers.ha @@ -43,6 +43,13 @@ fn runehandler(l: *widget::widget, r: libtui::key) bool = { list::pagedown(l); case 'u' => list::pageup(l); + case 'h' => + if (msg != "") { + libtui::suspend(&l.widget.ui); + fmt::println(msg)!; + libtui::resume(&l.widget.ui); + return true; + }; case 'l' => // to print properly suspend the ui, print, then resume libtui::suspend(&l.widget.ui); |
