package windowsconsole
import "github.com/moby/term/windows"
Index ¶
- func GetHandleInfo(in interface{}) (uintptr, bool)
- func IsConsole(fd uintptr) bool
- func NewAnsiReader(nFile int) io.ReadCloser
- func NewAnsiWriter(nFile int) io.Writer
Functions ¶
func GetHandleInfo ¶
GetHandleInfo returns file descriptor and bool indicating whether the file is a console.
func IsConsole ¶
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.
Deprecated: use windows.GetConsoleMode or golang.org/x/term.IsTerminal.
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 ¶
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 doc.go
- Version
- v0.5.0
- Published
- May 2, 2023
- Platform
- windows/amd64
- Imports
- 10 packages
- Last checked
- 19 hours ago –
Tools for package owners.