We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 436519a commit 1744307Copy full SHA for 1744307
pkg/terminal/terminal.go
@@ -133,7 +133,7 @@ func (t *Terminal) Run() error {
133
134
// Copy stdin to the pty and the pty to stdout.
135
go func() { _ = lazyCopy(t.pty, os.Stdin) }()
136
- go func() { _ = lazyCopy(os.Stdout, t.proxy, t.canOutput) }()
+ go func() { _ = lazyCopy(os.Stdout, t.proxy, t.hideAllOutput) }()
137
_ = lazyCopy(t.proxy, t.pty)
138
fmt.Printf("\r\n")
139
return nil
@@ -151,8 +151,8 @@ func (t *Terminal) ShowOutput() {
151
t.hideOutput = false
152
}
153
154
-func (t *Terminal) canOutput() bool {
+func (t *Terminal) hideAllOutput() bool {
155
t.outputMutex.RLock()
156
defer t.outputMutex.RUnlock()
157
- return !t.hideOutput
+ return t.hideOutput
158
0 commit comments