How to remove the decorate colors characters in bash output?

后端 未结 2 1723
你的背包
你的背包 2021-01-13 17:04

A console program (translate-shell) has an output with colors and uses special decorate characters for this: ^[[22m, ^[[24m, ^[[1m... and so on.

I\'d like to remove

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-13 17:34

    I found this in the manual about the use of ANSI escape codes:

    -no-ansi
        Do not use ANSI escape codes.
    

    So you should add this option when starting the program.

提交回复
热议问题