Skip to content

Commit

Permalink
termenv: add shim for js
Browse files Browse the repository at this point in the history
Supports GOOS=js GOARCH=wasm go build

Signed-off-by: Christian Stewart <christian@paral.in>
  • Loading branch information
paralin authored and muesli committed Jan 5, 2022
1 parent 166cf37 commit e27a5df
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions 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)
}

0 comments on commit e27a5df

Please sign in to comment.