package windowsconsole

import "github.com/ory/dockertest/v3/docker/pkg/term/windows"

Index

Functions

func GetHandleInfo

func GetHandleInfo(in interface{}) (uintptr, bool)

GetHandleInfo returns file descriptor and bool indicating whether the file is a console.

func IsConsole

func IsConsole(fd uintptr) bool

IsConsole returns true if the given file descriptor is a Windows Console. The code assumes that GetConsoleMode will return an error for file descriptors that are not a console.

func NewAnsiReader

func NewAnsiReader(nFile int) io.ReadCloser

NewAnsiReader returns an io.ReadCloser that provides VT100 terminal emulation on top of a Windows console input handle.

func NewAnsiWriter

func NewAnsiWriter(nFile int) io.Writer

NewAnsiWriter returns an io.Writer that provides VT100 terminal emulation on top of a Windows console output handle.

Source Files

ansi_reader.go ansi_writer.go console.go windows.go

Version
v3.4.0
Published
Oct 3, 2019
Platform
windows/amd64
Imports
12 packages
Last checked
1 hour ago

Tools for package owners.