mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-23 15:41:02 +00:00
15 lines
247 B
Go
15 lines
247 B
Go
package streamer
|
|
|
|
import "github.com/moby/term"
|
|
|
|
type CommonStream struct {
|
|
Fd uintptr
|
|
IsTerminal bool
|
|
State *term.State
|
|
}
|
|
|
|
func (s *CommonStream) RestoreTerminal() {
|
|
if s.State != nil {
|
|
term.RestoreTerminal(s.Fd, s.State)
|
|
}
|
|
}
|