windows

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConEmuStreams added in v1.10.0

func ConEmuStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer)

ConEmuStreams returns prepared versions of console streams, for proper use in ConEmu terminal. The ConEmu terminal emulates ANSI on output streams well by default.

func ConsoleStreams

func ConsoleStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer)

ConsoleStreams returns a wrapped version for each standard stream referencing a console, that handles ANSI character sequences.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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