Documentation
¶
Index ¶
Constants ¶
View Source
const (
WINPTY_SPAWN_FLAG_AUTO_SHUTDOWN = 1
)
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
}
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 ¶
Click to show internal directories.
Click to hide internal directories.