repl: categorize commands in help string

This commit is contained in:
Norwin 2022-01-02 06:47:15 +01:00
parent 48f1fce93d
commit da3c05bfe4
1 changed files with 11 additions and 7 deletions

View File

@ -161,19 +161,23 @@ func RunREPL(f Fluter) {
func printHelp() { func printHelp() {
fmt.Println(`available commands: fmt.Println(`available commands:
general
start start fluting start start fluting
stop pause fluting stop pause fluting
c <n> set number of connections per client status print current task
a <host>:<port> set target server content
offset <x> <y> set top-left offset
offset rand random offset for each draw
metrics toggle bandwidth reporting (may cost some performance)
i <filepath> set image i <filepath> set image
txt <scale> <color <bgcolor> <txt> send text txt <scale> <color <bgcolor> <txt> send text
txt [<scale> [<color> [<bgcolor>]] enter interactive text mode txt [<scale> [<color> [<bgcolor>]] enter interactive text mode
draw modes
o set order (l,r,t,b,random)
of <x> <y> set top-left offset
of rand random offset for each draw
rgbsplit toggle RGB split effect rgbsplit toggle RGB split effect
o set order (l,r,t,b,shuffle)`) networking
c <n> set number of connections per client
a <host>:<port> set target server
metrics toggle bandwidth reporting (may cost some performance)`)
} }
// try to parse as hex-encoded RGB color, // try to parse as hex-encoded RGB color,