Documentation ¶
Index ¶
- type Pty
- func (c *Pty) Close() error
- func (c *Pty) InPipe() *os.File
- func (c *Pty) OutPipe() *os.File
- func (c *Pty) Read(buf []byte) (int, error)
- func (c *Pty) Resize(width, height int16) error
- func (c *Pty) UpdateProcThreadAttribute(attrList *windows.ProcThreadAttributeListContainer) error
- func (c *Pty) Write(buf []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pty ¶
type Pty struct {
// contains filtered or unexported fields
}
Pty is a wrapper around a Windows PseudoConsole handle. Create a new instance by calling `Create()`.
func Create ¶
Create returns a new `Pty` object. This object is not ready for IO until `UpdateProcThreadAttribute` is called and a process has been started.
func (*Pty) Read ¶
Read reads from the pseudo console into `buf`. Returns the number of bytes read and an error if there is one.
func (*Pty) Resize ¶
Resize resizes the internal buffers of the pseudo console to the passed in size
func (*Pty) UpdateProcThreadAttribute ¶
func (c *Pty) UpdateProcThreadAttribute(attrList *windows.ProcThreadAttributeListContainer) error
UpdateProcThreadAttribute updates the passed in attribute list to contain the entry necessary for use with CreateProcess.
Click to show internal directories.
Click to hide internal directories.