From bedbc3d10a87146bba4cc37c356068ef8849a496 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 27 Apr 2019 15:44:11 +0300 Subject: Update README --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2673952..7688fbb 100644 --- a/README.md +++ b/README.md @@ -28,25 +28,36 @@ or compile from source: Simply pull changes (`git pull`) and run `go build` again to update. ## Developing -For debugging, use `tail -f /tmp/gomuks-debug.log` and write to it using the methods in the `maunium.net/go/gomuks/debug` package: +Set `DEBUG=1` to enable partial deadlock detection and to write panics to stdout instead of a file. + +To build and run with [race detection](https://golang.org/doc/articles/race_detector.html), +use `go install -race` and set `GORACE='history_size=7 log_path=/tmp/gomuks/race.log'` +when starting gomuks, then check `/tmp/gomuks/race.log.`. Note that race detection +will use a lot of extra resources. + +For debugging, use `tail -f /tmp/gomuks/debug.log` and write to it using the +methods in the `maunium.net/go/gomuks/debug` package: ```go +package foo + import ( "maunium.net/go/gomuks/debug" ) -... + func Foo() { debug.Print("WHY ISN'T IT WORKING?!?!?") + debug.PrintStack() } ``` ## Usage - switch rooms - `Ctrl + ↑` `Ctrl + ↓` `Alt + ↑` `Alt + ↓` -- scroll chat (line) - `↑` `↓` +- ~~scroll chat (line) - `↑` `↓`~~ - scroll chat (page) - `PgUp` `PgDown` - jump to room - `Alt + Enter`, then `Tab` and `Enter` to navigate and select room ### Commands -* `/help` - Is a known command +* `/help` - View command list * `/me ` - Send an emote * `/quit` - Close gomuks * `/clearcache` - Clear room state and close gomuks @@ -56,3 +67,5 @@ func Foo() { * `/logout` - Log out, clear caches and go back to the login view * `/send ` - Send a custom event * `/setstate ` - Change room state +* `/msend ` - Send a custom event to the current room +* `/msetstate ` - Change room state in the current room -- cgit v1.2.3