mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
move ui.Init() into main, allow any key to exit help dialog
This commit is contained in:
@@ -19,7 +19,7 @@ func Help() {
|
||||
p.BorderLabel = "Help"
|
||||
p.BorderFg = ui.ColorCyan
|
||||
ui.Render(p)
|
||||
ui.Handle("/sys/kbd/q", func(ui.Event) {
|
||||
ui.Handle("/sys/kbd/", func(ui.Event) {
|
||||
ui.StopLoop()
|
||||
})
|
||||
ui.Loop()
|
||||
|
||||
Reference in New Issue
Block a user