Documentation ¶
Index ¶
- func IsStdinTerminal() bool
- func NewTtyShareClient(url string, detachKeys string) *ttyShareClient
- func OnWindowChanges(wcCB onWindowChangedCB)
- type PtyMaster
- func (pty *PtyMaster) GetWinSize() (int, int, error)
- func (pty *PtyMaster) MakeRaw() (err error)
- func (pty *PtyMaster) Read(b []byte) (int, error)
- func (pty *PtyMaster) Refresh()
- func (pty *PtyMaster) Restore()
- func (pty *PtyMaster) SetWinChangeCB(winChangedCB onWindowChangedCB)
- func (pty *PtyMaster) SetWinSize(rows, cols int)
- func (pty *PtyMaster) Start(command string, args []string, envVars []string) (err error)
- func (pty *PtyMaster) Stop() (err error)
- func (pty *PtyMaster) Wait() (err error)
- func (pty *PtyMaster) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStdinTerminal ¶
func IsStdinTerminal() bool
func NewTtyShareClient ¶
func OnWindowChanges ¶
func OnWindowChanges(wcCB onWindowChangedCB)
Types ¶
type PtyMaster ¶
type PtyMaster struct {
// contains filtered or unexported fields
}
This defines a PTY Master whih will encapsulate the command we want to run, and provide simple access to the command, to write and read IO, but also to control the window size.
func PtyMasterNew ¶
func PtyMasterNew() *PtyMaster
func (*PtyMaster) SetWinChangeCB ¶
func (pty *PtyMaster) SetWinChangeCB(winChangedCB onWindowChangedCB)
func (*PtyMaster) SetWinSize ¶
Click to show internal directories.
Click to hide internal directories.