From 50baa91973b8a243ff394921bb704c863a34dc14feaa4a962986cbde6c4dd63b Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 16 Apr 2024 16:14:30 +0300 Subject: [PATCH] "q" to quit --- cmd/client/main.go | 2 +- cmd/server/main.go | 2 +- doc/usage.texi | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/client/main.go b/cmd/client/main.go index 681209f..511c2c0 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -295,7 +295,7 @@ func main() { GUI.SelFgColor = gocui.ColorCyan GUI.Highlight = true GUI.SetManagerFunc(guiLayout) - if err := GUI.SetKeybinding("", gocui.KeyF10, gocui.ModNone, guiQuit); err != nil { + if err := GUI.SetKeybinding("", 'q', gocui.ModNone, guiQuit); err != nil { log.Fatal(err) } if err := GUI.SetKeybinding("", gocui.KeyEnter, gocui.ModNone, mute); err != nil { diff --git a/cmd/server/main.go b/cmd/server/main.go index 4b06974..51dd019 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -354,7 +354,7 @@ func main() { } defer GUI.Close() GUI.SetManagerFunc(guiLayout) - if err := GUI.SetKeybinding("", gocui.KeyF10, gocui.ModNone, guiQuit); err != nil { + if err := GUI.SetKeybinding("", 'q', gocui.ModNone, guiQuit); err != nil { log.Fatal(err) } diff --git a/doc/usage.texi b/doc/usage.texi index c4c12c1..e44817a 100644 --- a/doc/usage.texi +++ b/doc/usage.texi @@ -32,8 +32,8 @@ $ vors-server -key key -bind [2001:db8::1]:12978 $ vors-client -srv "[2001:db8::1]:12978" -pub $pub -name NAME @end example - Pressing F10 in server/client TUIs means quitting. Pressing Enter in - client means "mute" toggling. + Pressing "q" in server/client TUIs means quitting. + Pressing Enter in client means "mute" toggling. @item @option{-room} allows you to join non-root room. -- 2.44.0