User Tools

Site Tools


bash:colors:8-bit_colors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bash:colors:8-bit_colors [2021/01/09 13:21] peterbash:colors:8-bit_colors [2021/01/09 13:33] (current) peter
Line 8: Line 8:
  
 <code bash> <code bash>
-\033[38;5;Foreground-color 
-\033[48;5;Background-color 
- 
 ESC[ 38;5;⟨n⟩ m Select foreground color ESC[ 38;5;⟨n⟩ m Select foreground color
 ESC[ 48;5;⟨n⟩ m Select background color ESC[ 48;5;⟨n⟩ m Select background color
 +</code>
 +
 +where n is:
 +
 +<code bash>
   0-  7:  standard colors (as in ESC [ 30–37 m)   0-  7:  standard colors (as in ESC [ 30–37 m)
   8- 15:  high intensity colors (as in ESC [ 90–97 m)   8- 15:  high intensity colors (as in ESC [ 90–97 m)
Line 36: Line 38:
 <code bash> <code bash>
 echo -e "\033[38;5;1mThis is in RED" echo -e "\033[38;5;1mThis is in RED"
 +</code>
 +
 +----
 +
 +===== BRIGHT RED Example =====
 +
 +<code bash>
 +echo -e "\033[38;5;9mThis is in BRIGHT RED"
 </code> </code>
  
bash/colors/8-bit_colors.1610198467.txt.gz · Last modified: 2021/01/09 13:21 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki