Rename AUTO to CYCLE on key c and relay browser keys to stdin
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user