diff --git a/termenv_js.go b/termenv_js.go new file mode 100644 index 0000000..ef7bb5c --- /dev/null +++ b/termenv_js.go @@ -0,0 +1,18 @@ +//go:build js +// +build js + +package termenv + +func colorProfile() Profile { + return ANSI256 +} + +func foregroundColor() Color { + // default gray + return ANSIColor(7) +} + +func backgroundColor() Color { + // default black + return ANSIColor(0) +}