repl: add toggle start/stop shortcut
This commit is contained in:
parent
da3c05bfe4
commit
69bb57a560
|
@ -66,6 +66,13 @@ func RunREPL(f Fluter) {
|
||||||
case "start":
|
case "start":
|
||||||
t.Paused = false
|
t.Paused = false
|
||||||
|
|
||||||
|
case "toggle", ".":
|
||||||
|
t.Paused = !t.Paused
|
||||||
|
if t.Paused {
|
||||||
|
f.stopTask()
|
||||||
|
printTask = false
|
||||||
|
}
|
||||||
|
|
||||||
case "offset", "of":
|
case "offset", "of":
|
||||||
if len(args) == 1 && args[0] == "rand" {
|
if len(args) == 1 && args[0] == "rand" {
|
||||||
t.RandOffset = true
|
t.RandOffset = true
|
||||||
|
|
Loading…
Reference in New Issue