Movatterモバイル変換


[0]ホーム

URL:


conpty

package
v1.92.2Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:7Imported by:0

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Rendered for windows/amd64

Overview

Package conpty implements support for Windows pseudo-consoles.

Index

Constants

This section is empty.

Variables

View Source
var (// ErrUnsupported is returned by NewPseudoConsole if the current Windows// build does not support this package's API.ErrUnsupported =errors.New("conpty unsupported on this version of Windows"))

Functions

This section is empty.

Types

typePseudoConsole

type PseudoConsole struct {// contains filtered or unexported fields}

PseudoConsole encapsulates a Windows pseudo-console. Use NewPseudoConsoleto create a new instance.

funcNewPseudoConsole

func NewPseudoConsole(sizewindows.Coord) (pty *PseudoConsole, errerror)

NewPseudoConsole creates a new PseudoConsole using size for its initialwidth and height. It requires Windows 10 1809 or newer, and will returnErrUnsupported if that requirement is not met.

func (*PseudoConsole)Close

func (pty *PseudoConsole) Close()error

Close shuts down the pty. The caller must continue reading from theReadCloser returned by Output until either EOF is reached or Close returns;failure to adequately drain the ReadCloser may result in Close deadlocking.

func (*PseudoConsole)ConfigureStartupInfo

func (pty *PseudoConsole) ConfigureStartupInfo(sib *winutil.StartupInfoBuilder)error

ConfigureStartupInfo associates pty with the process to be started using sib.

func (*PseudoConsole)InputPipe

func (pty *PseudoConsole) InputPipe()io.WriteCloser

InputPipe returns the WriteCloser for writing pty's output.

func (*PseudoConsole)OutputPipe

func (pty *PseudoConsole) OutputPipe()io.ReadCloser

OutputPipe returns the ReadCloser for reading pty's output.

func (*PseudoConsole)Resize

func (pty *PseudoConsole) Resize(sizewindows.Coord)error

Resize sets the width and height of pty to size.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp