Discover Packages
github.com/pamburus/ansitty
package
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Feb 26, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
README
¶
Expand ▾
Collapse ▴
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package ansitty provides a function to enable possibility to use ANSI escape sequences in TTY if possible.
Disable disables possibility to use ANSI escape sequences in TTY if possible.
Enable enables possibility to use ANSI escape sequences in TTY if possible.
Stderr enables possibility to use ANSI escape sequences in TTY if possible to stderr and returns os.Stderr.
Stdout enables possibility to use ANSI escape sequences in TTY if possible to stdout and returns os.Stdout.
Writer is a convenience function to enable possibility to use ANSI escape sequences in TTY if possible to writer.
It calls Enable on the given writer and returns the same writer.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.