RestoreOrigStdIO reverts to using the saved OrigStdIO
()
| 148 | |
| 149 | // RestoreOrigStdIO reverts to using the saved OrigStdIO |
| 150 | func (sh *Shell) RestoreOrigStdIO() { |
| 151 | sh.Config.StdIO = sh.OrigStdIO |
| 152 | sh.OrigStdIO.SetToOS() |
| 153 | sh.StdIOWrappers.SetWrappers(&sh.OrigStdIO) |
| 154 | } |
| 155 | |
| 156 | // Close closes any resources associated with the shell, |
| 157 | // including terminating any commands that are not running "nohup" |
no test coverage detected