v0.2.0 16 colors, default colors, /dev/tty, bracketed paste, themed form controls
This commit is contained in:
32 files changed
+1447
-424
No files matched your search
+6
-1
@@ -2,6 +2,8 @@
|
||||
|
||||
package terminal
|
||||
|
||||
import "os"
|
||||
|
||||
// DetectColorMode determines terminal color capability from environment
|
||||
func DetectColorMode() ColorMode {
|
||||
// Browsers/xterm.js generally support true color
|
||||
@@ -9,4 +11,7 @@ func DetectColorMode() ColorMode {
|
||||
}
|
||||
|
||||
// resetTerminalMode is no-op for WASM; termios does not exist
|
||||
func resetTerminalMode() {}
|
||||
func resetTerminalMode() {}
|
||||
|
||||
// controllingTTY is nil: the browser terminal is reached through the bridge
|
||||
func controllingTTY() *os.File { return nil }
|
||||
Reference in new issue
Block a user