mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-15 17:51:15 +00:00
tui, added ctrl+c to exit
This commit is contained in:
parent
c5d0fda33b
commit
348b7b2d63
1 changed files with 3 additions and 0 deletions
3
tui.go
3
tui.go
|
@ -71,6 +71,9 @@ func (t *tui) Start(ctx context.Context, toRingBufferCh chan []subjectAndMessage
|
|||
case tcell.KeyF3:
|
||||
pages.SwitchToPage("info")
|
||||
return nil
|
||||
case tcell.KeyCtrlC:
|
||||
app.Stop()
|
||||
log.Printf("info: detected ctrl+c, stopping TUI\n")
|
||||
}
|
||||
return event
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue