Rename AUTO to CYCLE on key c and relay browser keys to stdin

This commit is contained in:
flamingcow
2026-08-31 09:02:16 -07:00
parent 5b1eee2699
commit ea272e489c
4 changed files with 37 additions and 2 deletions
+8
View File
@@ -169,6 +169,14 @@ func run(runFor time.Duration, at string, out io.Writer, args []string) error {
return err
}
go io.Copy(stdin, os.Stdin)
consoleMu.Lock()
console = stdin
consoleMu.Unlock()
defer func() {
consoleMu.Lock()
console = nil
consoleMu.Unlock()
}()
if err := cmd.Start(); err != nil {
return err
}