Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 418bb9da authored by Dan Willemsen's avatar Dan Willemsen Committed by android-build-merger
Browse files

Strip escape characters when TERM=dumb

am: 77fe3611

Change-Id: I3c2844dc57c48abb0688b76072861b6880af3cbb
parents 9b54e8be 77fe3611
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,8 +82,8 @@ func NewWriter(stdio StdioInterface) Writer {

	if term, ok := os.LookupEnv("TERM"); ok && term != "dumb" {
		w.smartTerminal = isTerminal(stdio.Stdout())
		w.stripEscapes = !w.smartTerminal
	}
	w.stripEscapes = !w.smartTerminal

	return w
}