Skip to content

Commit

Permalink
Hack to force true colours
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Feb 17, 2018
1 parent 8b042b2 commit c9e0a9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interfacer/browsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ func start(injectedScreen tcell.Screen) {
}

func ttyStart() {
// Hack to force true colours
// Follow: https://github.com/gdamore/tcell/pull/183
os.Setenv("TERM", "xterm-truecolor")

realScreen, err := tcell.NewScreen()
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
Expand Down

0 comments on commit c9e0a9e

Please sign in to comment.