Help us shape the future of Go! Take the 2026 Go Developer Survey

terminal

package
v0.4.26 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package terminal defines the bounded terminal transport supplied by runtimes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSize

func ValidateSize(rows, columns int) error

Types

type Session

type Session interface {
	io.ReadWriteCloser
	Resize(rows, columns int) error
	Wait(context.Context) (int, error)
}

func Start

func Start(ctx context.Context, cmd *exec.Cmd, rows, columns int) (Session, error)

Start runs a runtime-owned command with an actual PTY. Callers select a typed container operation; this primitive is never exposed as a machine operation.

Jump to

Keyboard shortcuts

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