windows

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 added in v1.12.0

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 added in v1.12.0

func NewAnsiWriter(nFile int) io.Writer

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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