From c1d87278337656e30aa94447d4d0c32c16fdbfc1 Mon Sep 17 00:00:00 2001 From: Simon J Mudd Date: Sat, 13 Dec 2014 18:40:12 +0100 Subject: [PATCH] Allow ? key for help too --- main.go | 2 +- screen/screen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 545170c..ddefcf0 100644 --- a/main.go +++ b/main.go @@ -197,7 +197,7 @@ func main() { } case '+': // increase interval by creating a new ticker wi.SetWaitInterval(wi.WaitInterval() + time.Second) - case 'h': // help + case 'h', '?': // help state.SetHelp(!state.Help()) case 'q': // quit finished = true diff --git a/screen/screen.go b/screen/screen.go index 338583a..9266ad8 100644 --- a/screen/screen.go +++ b/screen/screen.go @@ -87,7 +87,7 @@ func (s *TermboxScreen) DisplayHelp() { s.PrintAt(0, 5, "Keys:") s.PrintAt(0, 6, "- - reduce the poll interval by 1 second (minimum 1 second)") s.PrintAt(0, 7, "+ - increase the poll interval by 1 second") - s.PrintAt(0, 8, "h - this help screen") + s.PrintAt(0, 8, "h/? - this help screen") s.PrintAt(0, 9, "q - quit") s.PrintAt(0, 10, "t - toggle between showing time since resetting statistics or since P_S data was collected") s.PrintAt(0, 11, "z - reset statistics") -- 2.7.4