mirror of
https://github.com/yudai/gotty.git
synced 2026-01-27 11:46:11 +01:00
Refine API of webtty package
This commit is contained in:
parent
d1ec7125cf
commit
807bcc25a4
10 changed files with 82 additions and 97 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue