v0.2.0 16 colors, default colors, /dev/tty, bracketed paste, themed form controls

This commit is contained in:
lixen committed 2026-10-09 14:15:46 -04:00
1 parent 070131c7fd
commit 2b5d127e84
32 files changed
+1447 -424

No files matched your search

+3 -9
View File
@@ -8,15 +8,9 @@ import (
"golang.org/x/sys/windows"
)
func DetectColorMode() ColorMode {
if os.Getenv("WT_SESSION") != "" || os.Getenv("WT_PROFILE_ID") != "" {
return ColorModeTrueColor
}
if ct := os.Getenv("COLORTERM"); ct == "truecolor" || ct == "24bit" {
return ColorModeTrueColor
}
return ColorMode256
}
// controllingTTY is nil: Init refuses a redirected stdout, so the library
// never drew on the console behind one
func controllingTTY() *os.File { return nil }
func resetTerminalMode() {
saneIn := uint32(windows.ENABLE_PROCESSED_INPUT |