Versions in this module Expand all Collapse all v0 v0.7.3 Dec 28, 2024 v0.7.2 Dec 25, 2024 v0.7.1 Dec 23, 2024 v0.7.0 Nov 12, 2024 v0.6.9 Oct 5, 2024 v0.6.8 Oct 1, 2024 v0.6.7 Sep 27, 2024 v0.6.6 Sep 1, 2024 v0.6.5 Aug 28, 2024 v0.6.4 Jul 5, 2024 v0.6.3 Jun 25, 2024 v0.6.2 Jun 4, 2024 v0.6.1 Jun 1, 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 Copy(dst io.Writer, src *os.File) func() — darwin/amd64, linux/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 Setsize(f *os.File, rows int, cols int) error — darwin/amd64, linux/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 Pty struct — darwin/amd64, linux/amd64, windows/amd64 + Stdin *os.File + Stdout *os.File + func (p *Pty) Record(command string, envs ...string) error + func (p *Pty) Size() (int, int, error) + func (p *Pty) Size() (rows, cols int, err error) + type StartupInfoEx struct — windows/amd64 + func GetStartupInfoExForPTY(hpc windows.Handle) (*StartupInfoEx, error) + type Terminal interface + Record func(command string, envs ...string) error + Size func() (int, int, error) + func NewTerminal() Terminal