Documentation
¶
Rendered for windows/amd64
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConPtyUnsupported = errors.New("ConPty is not available on this version of Windows")
)
Functions ¶
func IsConPtyAvailable ¶
func IsConPtyAvailable() bool
Types ¶
type ConPty ¶
type ConPty struct {
// contains filtered or unexported fields
}
func Start ¶
func Start(commandLine string, options ...ConPtyOption) (*ConPty, error)
Start a new process specified in `commandLine` and attach a pseudo console using the Windows ConPty API. If ConPty is not available, ErrConPtyUnsupported will be returned.
On successful return, an instance of ConPty is returned. You must call Close() on this to release any resources associated with the process. To get the exit code of the process, you can call Wait().
type ConPtyOption ¶
type ConPtyOption func(args *conPtyArgs)
func ConPtyDimensions ¶
func ConPtyDimensions(width, height int) ConPtyOption
func ConPtyEnv ¶
func ConPtyEnv(env []string) ConPtyOption
func ConPtyWorkDir ¶
func ConPtyWorkDir(workDir string) ConPtyOption
Click to show internal directories.
Click to hide internal directories.