X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=main.go;h=545170c83fe9932cd5937e5ef6dcc0269f22cece;hb=193ae41f5473832680f1969a1e0bc19bc27909b8;hp=1f40e65cc1b72aab9f7baff02f11ac31fc03f428;hpb=db603692f051e73aae7c3073bcd2a8a46dead813;p=pstop.git diff --git a/main.go b/main.go index 1f40e65..545170c 100644 --- a/main.go +++ b/main.go @@ -183,7 +183,10 @@ func main() { switch event.Key { case termbox.KeyCtrlZ, termbox.KeyCtrlC, termbox.KeyEsc: finished = true - case termbox.KeyTab: // tab - change display modes + case termbox.KeyArrowLeft: // left arrow change to previous display mode + state.DisplayPrevious() + state.Display() + case termbox.KeyTab, termbox.KeyArrowRight: // tab or right arrow - change to next display mode state.DisplayNext() state.Display() }