Refine API of webtty package
This commit is contained in:
@@ -6,8 +6,12 @@ import (
|
||||
|
||||
// Slave represents a PTY slave, typically it's a local command.
|
||||
type Slave interface {
|
||||
io.ReadWriteCloser
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user