gotty/webtty/slave.go

18 lines
387 B
Go
Raw Normal View History

2017-02-26 06:37:07 +08:00
package webtty
import (
"io"
)
// Slave represents a PTY slave, typically it's a local command.
type Slave interface {
2017-08-24 13:40:28 +08:00
io.ReadWriter
2017-02-26 06:37:07 +08:00
2017-08-24 13:40:28 +08:00
// WindowTitleVariables returns any values that can be used to fill out
// the title of a terminal.
2017-02-26 06:37:07 +08:00
WindowTitleVariables() map[string]interface{}
2017-08-24 13:40:28 +08:00
// ResizeTerminal sets a new size of the terminal.
2017-02-26 06:37:07 +08:00
ResizeTerminal(columns int, rows int) error
}