Documentation
¶
Index ¶
Constants ¶
View Source
const ( WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN = 1 WINPTY_FLAG_ALLOW_CURPROC_DESKTOP_CREATION = 0x8 )
Variables ¶
This section is empty.
Functions ¶
func GetErrorMessage ¶
func UTF16PtrFromStringArray ¶
func UTF16PtrToString ¶
Types ¶
type Options ¶
type Options struct {
// DLLPrefix is the path to winpty.dll and winpty-agent.exe
DLLPrefix string
// AppName sets the title of the console
AppName 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
// Flags to pass to agent config creation
Flags uint32
// Initial size for Columns and Rows
InitialCols uint32
InitialRows uint32
}
type WinPTY ¶
func Open ¶
accepts path to command to execute, then arguments. returns WinPTY object pointer, error. remember to call Close on WinPTY object when done.
func OpenDefault ¶
the same as open, but uses defaults for Env & Dir
func OpenWithOptions ¶
func (*WinPTY) GetProcHandle ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.