Versions in this module Expand all Collapse all v0 v0.4.0 Apr 12, 2024 Changes in this version + const PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE — windows/amd64 + const STILL_ACTIVE — windows/amd64 + const S_OK — windows/amd64 + var ErrConPtyUnsupported = errors.New("ConPty is not available on this version of Windows") — windows/amd64 + func CreateConsoleProcessAttachedToPTY(hpc windows.Handle, commandLine string, envs []string) (*windows.ProcessInformation, error) — windows/amd64 + func CreateEnvBlock(envv []string) ([]uint16, error) — windows/amd64 + func EnableVirtualTerminalProcessing() error — windows/amd64 + func SetRawMode() (inHandle, outHandle windows.Handle) — windows/amd64 + func Win32ClosePseudoConsole(hPc windows.Handle) — windows/amd64 + func Win32CreatePseudoConsole(coord *COORD, hIn, hOut windows.Handle) (windows.Handle, error) — windows/amd64 + func Win32ResizePseudoConsole(hPc windows.Handle, coord *COORD) error — windows/amd64 + func WinCloseHandles(handles ...windows.Handle) error — windows/amd64 + func WinIsConPtyAvailable() bool — windows/amd64 + func WinIsDataAvailable(handle windows.Handle) (bytesAvailable int, err error) — windows/amd64 + type COORD struct — windows/amd64 + X int + Y int + func WinConsoleScreenSize() (size *COORD, err error) + func (c *COORD) Pack() uintptr + type ConPty struct — windows/amd64 + func Start(commandLine string, coord *COORD, envs []string) (*ConPty, error) + func (cpty *ConPty) Close() error + func (cpty *ConPty) Read(p []byte) (int, error) + func (cpty *ConPty) Resize(width, height int) error + func (cpty *ConPty) Wait(ctx context.Context) (uint32, error) + func (cpty *ConPty) Write(p []byte) (int, error) + type HandleWrapper struct — windows/amd64 + func (h *HandleWrapper) Close() error + func (h *HandleWrapper) GetHandle() windows.Handle + func (h *HandleWrapper) Read(p []byte) (int, error) + func (h *HandleWrapper) Write(p []byte) (int, error) + type StartupInfoEx struct — windows/amd64 + func GetStartupInfoExForPTY(hpc windows.Handle) (*StartupInfoEx, error) v0.3.9 Apr 6, 2024 v0.3.8 Apr 1, 2024 v0.3.7 Apr 1, 2024 v0.3.7-beta3 Apr 1, 2024 v0.3.7-beta2 Apr 1, 2024 v0.3.7-beta1 Apr 1, 2024 v0.3.6 Apr 1, 2024 v0.3.5 Apr 1, 2024 v0.3.4 Mar 31, 2024 v0.3.3 Mar 25, 2024 v0.3.2 Mar 24, 2024 v0.3.1 Feb 15, 2024 v0.2.6-beta Apr 1, 2024