Mailinglist Archive: opensuse-factory (562 mails)

< Previous Next >
Re: [opensuse-factory] inxi for acquiring driver info (was: this latest release is proving trouble...)
  • From: Roger Price <roger@xxxxxxxxxxxxxx>
  • Date: Wed, 18 Jan 2017 21:28:20 +0100 (CET)
  • Message-id: <alpine.LSU.2.11.1701182122260.5770@maria>
On Wed, 18 Jan 2017, Felix Miata wrote:

... Color schemes don't seem to be defeatable.
:-(

In .bashrc I added

# Remove colour codes from ascii
# See http://misc.flogisoft.com/bash/tip_colors_and_formatting for codes
# See
https://unix.stackexchange.com/questions/55546/removing-color-codes-from-output
for sed
alias no-color='sed "s/\x1B\[[0-9;]*[JKmsu]//g"'
alias no-colour='sed "s/\x1B\[[0-9;]*[JKmsu]//g"'

I pipe the inxi outup through no-colo(u)r to remove the colo(u)rs.

Roger
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >