From: | Mick <michaelkintzios@×××××.com> |
---|---|
To: | gentoo-user@l.g.o |
Subject: | [gentoo-user] How do I turn off ansi (colour) codes in ... script output |
Date: | Fri, 02 Jun 2017 23:06:46 |
Message-Id: | 3756034.lShQThFZfI@dell_xps |
1 | Hi All, |
2 | |
3 | Walter had posted a message about ANSI codes showing up in portage output. I |
4 | am getting the same when I run /usr/bin/script and examine the contents of the |
5 | resultant file with a text editor; e.g. in Vim I get: |
6 | |
7 | ^[[0;32m~ ^[[35m$ ^[[0mtest^H^[[K^H^[[K^H^[[K^H^[[Kecho S^H^[[K|^H^[[K$term^M |
8 | |
9 | but when I use less I can see: |
10 | |
11 | ~ $ echo $TERM |
12 | |
13 | Is there a way of suppressing these characters in gedit, kwrite, vim, etc.? |
14 | -- |
15 | Regards, |
16 | Mick |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-user] How do I turn off ansi (colour) codes in ... script output | R0b0t1 <r030t1@×××××.com> |
Re: [gentoo-user] How do I turn off ansi (colour) codes in ... script output | "Toralf Förster" <toralf@g.o> |