gotty/webtty/slave.go

18 lines
387 B
Go
Raw Permalink Normal View History

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