Skip to content

Commit

Permalink
Identify as a 256 colour terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Mar 13, 2020
1 parent 5f95108 commit ed2eb67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions term.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ func (t *Terminal) open() error {
if shell == "" {
shell = "bash"
}
env := os.Environ()
env = append(env, "TERM=xterm-256color")
c := exec.Command(shell)
c.Env = env

// Start the command with a pty.
handle, err := pty.Start(c)
Expand Down

0 comments on commit ed2eb67

Please sign in to comment.