mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-23 04:44:26 +00:00
18 lines
387 B
Go
18 lines
387 B
Go
package webtty
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// Slave represents a PTY slave, typically it's a local command.
|
|
type Slave interface {
|
|
io.ReadWriter
|
|
|
|
// WindowTitleVariables returns any values that can be used to fill out
|
|
// the title of a terminal.
|
|
WindowTitleVariables() map[string]interface{}
|
|
|
|
// ResizeTerminal sets a new size of the terminal.
|
|
ResizeTerminal(columns int, rows int) error
|
|
}
|