Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

19
  • 2
    I suggest for original asker to test color availability with a test chart. There is one here: robmeerman.co.uk/unix/… or it can be very easy to do one, if one does not trust shell scripts found on internet. Commented Apr 12, 2014 at 16:52
  • 1
    @IBr Interesting point. Just viewing all the colors is a drop dead simple task, so I few lines of bash above to do this. Commented Apr 12, 2014 at 17:05
  • 2
    Please, don't use echo for anything other than literal text that doesn't start with a dash (-). It's unportable. All common implementations violate the standard which states that no options should be supported. Worse, they're inconsistent. You should use printf instead. (And do not embed variables inside printf statements, use %s.) Commented May 4, 2014 at 15:08
  • 2
    colortest-256 list the xterm pallette in a nice compact form. (apt-get install colortest if missing) Commented Jul 3, 2014 at 3:13
  • 1
    Kudos for the escape sequence enclosing explanation. No more "weird things" while searching/navigating history. Commented Feb 20, 2018 at 14:16