Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- Variables
- func GetErrorCode(err uintptr) uint32
- func GetErrorMessage(err uintptr) string
- func SetAgentTimeout(winptyConfigT uintptr, timeoutMs uint64)
- func SetMouseMode(winptyConfigT uintptr, mode int)
- func UTF16PtrFromStringArray(s []string) (*uint16, error)
- func UTF16PtrToString(p *uint16) string
- type Options
- type WinPTY
- func (pty *WinPTY) Close() error
- func (pty *WinPTY) GetAgentProcHandle() uintptr
- func (pty *WinPTY) GetProcHandle() uintptr
- func (pty *WinPTY) GetStderr() io.Writer
- func (pty *WinPTY) GetStdin() io.Reader
- func (pty *WinPTY) GetStdout() io.Writer
- func (pty *WinPTY) Pid() int
- func (pty *WinPTY) SetSize(wsCol, wsRow uint32) error
Constants ¶
View Source
const ( WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN = 1 WINPTY_SPAWN_FLAG_EXIT_AFTER_SHUTDOWN = 2 WINPTY_FLAG_CONERR = 0x1 WINPTY_FLAG_PLAIN_OUTPUT = 0x2 WINPTY_FLAG_COLOR_ESCAPES = 0x4 WINPTY_FLAG_ALLOW_CURPROC_DESKTOP_CREATION = 0x8 WINPTY_MOUSE_MODE_NONE = 0 WINPTY_MOUSE_MODE_AUTO = 1 WINPTY_MOUSE_MODE_FORCE = 2 )
Variables ¶
View Source
var ( //windows api GetProcessId *syscall.LazyProc )
Functions ¶
func GetErrorCode ¶
func GetErrorMessage ¶
func SetAgentTimeout ¶
func SetMouseMode ¶
func UTF16PtrFromStringArray ¶
func UTF16PtrToString ¶
Types ¶
type Options ¶
type Options struct { // DllDir is the path to winpty.dll and winpty-agent.exe DllDir string // FilePath sets the title of the console FilePath string // Command is the full command to launch Command string // Dir sets the current working directory for the command Dir string // Env sets the environment variables. Use the format VAR=VAL. Env []string // AgentFlags to pass to agent config creation AgentFlags uint64 SpawnFlag uint32 MouseModes int // Initial size for Columns and Rows InitialCols uint32 InitialRows uint32 // contains filtered or unexported fields }
type WinPTY ¶
type WinPTY struct { Stdin *os.File Stdout *os.File Stderr *os.File // contains filtered or unexported fields }
func OpenDefault ¶
the same as open, but uses defaults for Env
func OpenWithOptions ¶
func (*WinPTY) GetAgentProcHandle ¶
func (*WinPTY) GetProcHandle ¶
Click to show internal directories.
Click to hide internal directories.