Registry / utility / apenwarr-fixconsole

apenwarr-fixconsole

JSON →
library0.0.0-20191012055117-5a9f6489cc29gogounverified

Fixes console output on Windows by enabling ANSI escape code support and proper UTF-8 handling.

go get github.com/apenwarr/fixconsole
INSTALL
IMPORT
SIG · APENWARR-FIXCONSOL
A
apenwarr-fixconsole
utilitygov0.0.0-20191012055117-5a9f6489cc29
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fixconsole
github.com/apenwarr/fixconsole

Fixes the Windows console to support ANSI colors and then prints red text.

package main import ( "fmt" "github.com/apenwarr/fixconsole" ) func main() { fixconsole.FixConsole() fmt.Println("\033[31mRed text\033[0m") }
Debug
Known issues
gotchaThis package only works on Windows; on other platforms it is a no-op.
fix
Use build tags or runtime checks to avoid unnecessary imports on non-Windows systems.
affects: *
Upgrade
Version history
0.0.0-20191012055117-5a9f6489cc29latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
2
Resources
apenwarr-fixconsole — go get apenwarr-fixconsole · libregistry