MCPcopy Create free account
hub / github.com/cogentcore/core / RestoreOrigStdIO

Method RestoreOrigStdIO

shell/shell.go:150–154  ·  view source on GitHub ↗

RestoreOrigStdIO reverts to using the saved OrigStdIO

()

Source from the content-addressed store, hash-verified

148
149// RestoreOrigStdIO reverts to using the saved OrigStdIO
150func (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"

Callers 1

RunCodeMethod · 0.80

Calls 2

SetToOSMethod · 0.80
SetWrappersMethod · 0.80

Tested by

no test coverage detected