Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTerminalType = "xterm-256color" DefaultTermWidth = 60 DefaultTermHeight = 120 EnvVarTermType = "TERM" )
Variables ¶
This section is empty.
Functions ¶
func GetConsoleSize ¶
GetConsoleSize returns the console size for terminal attachment.
func GetTerminalType ¶
func GetTerminalType() string
GetTerminalType retrieves the terminal type from the environment variables.
Types ¶
type ExecIO ¶
type ExecIO struct {
// contains filtered or unexported fields
}
ExecIO implements the api.AttachIO interface and holds the I/O streams and resize channel.
func DiscardingExecIO ¶
func DiscardingExecIO() *ExecIO
DiscardingExecIO creates a new ExecIO with stdout set to discard all data. nolint: ireturn
func NewExecIO ¶
func NewExecIO(tty bool, stdin io.Reader, stdout, stderr io.WriteCloser, chResize chan api.TermSize) *ExecIO
NewExecIO creates a new ExecIO with the given I/O streams and resize channel.
Click to show internal directories.
Click to hide internal directories.