mirror of
https://github.com/yudai/gotty.git
synced 2025-09-22 05:50:48 +02: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
|
||
|
}
|