1

I have found these settings in many bash profile files and I don't know what they mean or do. Can anybody explain them? Thanks!

# Terminal colors
NM="\[\033[0;38m\]" #means no background and white lines
HI="\[\033[0;37m\]" #change this for letter colors
HII="\[\033[0;31m\]" #change this for letter colors
SI="\[\033[0;33m\]" #this is for the current directory
IN="\[\033[0m\]"
janos
  • 4,848
  • 23
  • 50
nawar
  • 13
  • 3
  • Practical example: [Display part of fortune in different color](http://askubuntu.com/questions/328029/display-part-of-fortune-in-different-color) – Parto Feb 18 '14 at 21:51

1 Answers1

0

These are syntaxes for colouring your gnome-terminal.

For example, the first one,

NM="\[\033[0;38m\]" #means no background and white lines

Here,

  • NM is a variable

  • \[\033[ and m\] is the escape sequence for indicating the text in between is a colour code

  • 0;38 indicates no background and white lines(as mentioned in the comments)


Reference:

jobin
  • 27,142
  • 16
  • 100
  • 116