From 99e4109f6885460a84053b910af3189de29b2fcd Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Wed, 19 Dec 2018 21:41:12 +0000 Subject: Allow quitting directly from the 'type' prompt. --- telem.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'telem.lua') diff --git a/telem.lua b/telem.lua index 29ef3f8..6a40b95 100755 --- a/telem.lua +++ b/telem.lua @@ -530,6 +530,7 @@ type_dispatch["f"] = do_type_first type_dispatch["l"] = do_type_last type_dispatch["n"] = do_type_next type_dispatch["p"] = do_type_prev +type_dispatch["q"] = function() do_quit() os.exit() end type_dispatch["r"] = do_type_reply type_dispatch["s"] = do_type_save type_dispatch["w"] = do_type_whole @@ -543,7 +544,8 @@ function type_prompt_func() "["..colourise("red","w").."]hole, " .. "["..colourise("red","r").."]eply, " .. "["..colourise("red","s").."]ave, " .. - "["..colourise("red","d").."]one > " + "["..colourise("red","d").."]one, " .. + "["..colourise("red","q").."]uit > " end function do_type() -- cgit v1.2.3