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

Commit 2528b326 authored by Dan Willemsen's avatar Dan Willemsen Committed by android-build-merger
Browse files

Strip escape characters when TERM=dumb am: 77fe3611

am: 418bb9da

Change-Id: I17894e80a199901b5162ec3a65f8d90c7f99299c
parents 55382c6c 418bb9da
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
}