conpty

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("conpty: unsupported platform")

ErrUnsupported is returned when the current platform is not supported.

Functions

This section is empty.

Types

type ConPty

type ConPty struct{}

ConPty represents a Windows Console Pseudo-terminal. https://learn.microsoft.com/en-us/windows/console/creating-a-pseudoconsole-session#preparing-the-communication-channels

func New

func New(int, int, int) (*ConPty, error)

New creates a new ConPty. This function is not supported on non-Windows platforms.

func (*ConPty) Close

func (*ConPty) Close() error

Close closes the ConPty.

func (*ConPty) Fd

func (*ConPty) Fd() uintptr

Fd returns the file descriptor of the ConPty.

func (*ConPty) Read

func (*ConPty) Read([]byte) (int, error)

Read implements io.Reader.

func (*ConPty) Resize

func (*ConPty) Resize(int, int) error

Resize resizes the ConPty.

func (*ConPty) Size

func (*ConPty) Size() (int, int, error)

Size returns the size of the ConPty.

func (*ConPty) Write

func (*ConPty) Write([]byte) (int, error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL