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 uint)
- func UTF16PtrFromStringArray(s []string) (*uint16, error)
- func UTF16PtrToString(p *uint16) string
- type Options
- type WinPTY
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 ¶
set pty timeout
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 uint
// Initial size for Columns and Rows
InitialCols uint32
InitialRows uint32
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.