mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-14 09:24:25 +00:00
20 lines
337 B
Go
20 lines
337 B
Go
|
package backends
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
"net/url"
|
||
|
)
|
||
|
|
||
|
type ClientContextManager interface {
|
||
|
New(params url.Values) (ClientContext, error)
|
||
|
}
|
||
|
|
||
|
type ClientContext interface {
|
||
|
WindowTitle() (string, error)
|
||
|
Start(exitCh chan bool)
|
||
|
InputWriter() io.Writer
|
||
|
OutputReader() io.Reader
|
||
|
ResizeTerminal(width, height uint16) error
|
||
|
TearDown() error
|
||
|
}
|