dylanaraps / pure-bash-bible

📖 A collection of pure bash alternatives to external processes.
MIT License
36.42k stars 3.27k forks source link

Update README.md #81

Closed sal666 closed 4 years ago

sal666 commented 4 years ago

Add a method to turn off text effects

dylanaraps commented 4 years ago

How standard is using 2 to turn these off? Is it VT100 compatible?

sal666 commented 4 years ago

My best guess is that it depends on the implementation. I've tested it on GNU bash both in PC (bash v5.0.3) and in Android (bash v5.0.7). Not everything worked fine in both scenarios. In the PC faint text did not work but it did in Android. Slow blink text did not work in Android but it did in the PC. Turning off a feature worked fine in both cases for modes supported in that specific platform, except for turning off bold text on Android which did not have any effect.

Here https://en.wikipedia.org/wiki/ANSI_escape_code you can find a complete list of SGR (Select Graphic Rendition) parameters. As a matter of fact, according with this list of codes your table could be completed with some more codes.

dylanaraps commented 4 years ago

Sounds good to me. :+1: