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

console

package
v1.42.3 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: 8 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package console provides synthetic console records and synchronized observer frames for native Windows feature tests. It is imported only by test code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteRecords

func WriteRecords(records []cliterminal.ConsoleInputRecord) (uint32, error)

Native fixture writer shared by parity and queue tests. The count describes records accepted by Windows, not bytes delivered to a particular reader.

Types

type Control

type Control struct {
	Action string `json:"action"`
	Phase  string `json:"phase"`
	Nonce  string `json:"nonce"`
}

type Modes

type Modes struct {
	Stdin  uint32 `json:"stdin"`
	Stdout uint32 `json:"stdout"`
	Stderr uint32 `json:"stderr"`
}

func GetModes

func GetModes() (Modes, error)

type Observer

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

func NewObserver

func NewObserver(encoder *json.Encoder) *Observer

func (*Observer) Healthy

func (observer *Observer) Healthy() bool

func (*Observer) Send

func (observer *Observer) Send(frame map[string]any)

Jump to

Keyboard shortcuts

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