From 341e258208647cacca59c324fc658ac9c068c7c5 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Fri, 16 Dec 2022 11:31:21 +0100 Subject: Add -m flag --- handlers.ha | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'handlers.ha') 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); -- cgit v1.2.3