This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
bash:tip_colors_and_formatting [2017/09/07 06:51] flozz [Set] |
bash:tip_colors_and_formatting [2018/08/09 09:14] (current) flozz [Terminals compatibility] |
||
---|---|---|---|
Line 155: | Line 155: | ||
| [[http://www.afterstep.org/aterm.php|aTerm]] | ok | - | ok | - | ok | - | ok | ~ | - | - | Lighter background instead of blink. | | | [[http://www.afterstep.org/aterm.php|aTerm]] | ok | - | ok | - | ok | - | ok | ~ | - | - | Lighter background instead of blink. | | ||
| [[http://www.eterm.org/|Eterm]] | ~ | - | ok | - | ok | - | ok | ~ | - | ok | Lighter color instead of Bold. Lighter background instead of blink. Can overline a text with the "''^[''''[6m''" sequence. | | | [[http://www.eterm.org/|Eterm]] | ~ | - | ok | - | ok | - | ok | ~ | - | ok | Lighter color instead of Bold. Lighter background instead of blink. Can overline a text with the "''^[''''[6m''" sequence. | | ||
- | | [[http://library.gnome.org/users/gnome-terminal/|GNOME Terminal]] | ok | ok | ok | - | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | | + | | [[http://library.gnome.org/users/gnome-terminal/|GNOME Terminal]] | ok | ok | ok | ok | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | |
- | | [[http://guake.org/|Guake]] | ok | ok | ok | - | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | | + | | [[http://guake.org/|Guake]] | ok | ok | ok | ok | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | |
| [[http://konsole.kde.org/|Konsole]] | ok | - | ok | ok | ok | - | ok | ok | - | ok | | | | [[http://konsole.kde.org/|Konsole]] | ok | - | ok | ok | ok | - | ok | ok | - | ok | | | ||
- | | [[http://software.flogisoft.com/nautilus-terminal/|Nautilus Terminal]] | ok | ok | ok | - | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | | + | | [[https://github.com/flozz/nautilus-terminal|Nautilus Terminal]] | ok | ok | ok | ok | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | |
| [[http://rxvt.sourceforge.net/|rxvt]] | ok | - | ok | ~ | ok | - | ok | ok | ok | - | If the background is not set to the default color, Blink make it lighter instead of blinking. Support of italic text with the "''^[''''[3m''" sequence. | | | [[http://rxvt.sourceforge.net/|rxvt]] | ok | - | ok | ~ | ok | - | ok | ok | ok | - | If the background is not set to the default color, Blink make it lighter instead of blinking. Support of italic text with the "''^[''''[3m''" sequence. | | ||
| [[http://www.tenshu.net/terminator/|Terminator]] | ok | ok | ok | - | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | | | [[http://www.tenshu.net/terminator/|Terminator]] | ok | ok | ok | - | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | | ||
- | | [[http://tilda.sourceforge.net/tildaabout.php|Tilda]] | ok | - | ok | - | ok | - | ok | ok | - | - | Underline instead of Dim. Convert 256-colors in 16-colors. | | + | | [[http://tilda.sourceforge.net/tildaabout.php|Tilda]] | ok | - | ok | ok | ok | - | ok | ok | - | - | Underline instead of Dim. Convert 256-colors in 16-colors. | |
- | | [[http://www.xfce.org/projects/terminal|XFCE4 Terminal]] | ok | ok | ok | - | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | | + | | [[http://www.xfce.org/projects/terminal|XFCE4 Terminal]] | ok | ok | ok | ok | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | |
| [[http://invisible-island.net/xterm/xterm.html|XTerm]] | ok | - | ok | ok | ok | ok | ok | ok | - | ok | | | | [[http://invisible-island.net/xterm/xterm.html|XTerm]] | ok | - | ok | ok | ok | ok | ok | ok | - | ok | | | ||
| xvt | ok | - | ok | - | ok | - | - | - | - | - | | | | xvt | ok | - | ok | - | ok | - | - | - | - | - | | | ||
| Linux TTY | ok | - | - | - | ok | - | ok | ~ | - | - | Specials colors instead of Dim and Underlined. Lighter background instead of Blink, Bug with 88/256 colors. | | | Linux TTY | ok | - | - | - | ok | - | ok | ~ | - | - | Specials colors instead of Dim and Underlined. Lighter background instead of Blink, Bug with 88/256 colors. | | ||
- | | [[http://developer.gnome.org/vte/|VTE Terminal]] ((GTK Widget used in GNOME Terminal, Nautilus Terminal, XFCE4 Terminal...)) | ok | ok | ok | - | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | | + | | [[http://developer.gnome.org/vte/|VTE Terminal]] ((GTK Widget used in GNOME Terminal, Nautilus Terminal, XFCE4 Terminal...)) | ok | ok | ok | ok | ok | ok | ok | ok | - | ok | Strikeout with the "''^[''''[9m''" sequence. | |
__Notations used in the table:__ | __Notations used in the table:__ | ||
Line 172: | Line 172: | ||
* "''~''": Supported in a special way by the terminal. | * "''~''": Supported in a special way by the terminal. | ||
* "''-''": Not supported at all by the terminal. | * "''-''": Not supported at all by the terminal. | ||
- | |||
- | |||
Line 212: | Line 210: | ||
==== 256 colors ==== | ==== 256 colors ==== | ||
- | {{ :bash:colors_format:256-colors.sh.png?nolink|Screenshot of the 256-colors.sh script}} | + | {{ :bash:colors_format:256-colors.sh-v2.png?nolink&height=200|Screenshot of the 256-colors.sh script}} |
The following script display the 256 colors available on some terminals and terminals emulators like **XTerm** and **GNOME Terminal**. | The following script display the 256 colors available on some terminals and terminals emulators like **XTerm** and **GNOME Terminal**. | ||
Line 225: | Line 223: | ||
# http://sam.zoy.org/wtfpl/COPYING for more details. | # http://sam.zoy.org/wtfpl/COPYING for more details. | ||
- | for fgbg in 38 48 ; do #Foreground/Background | + | for fgbg in 38 48 ; do # Foreground / Background |
- | for color in {0..256} ; do #Colors | + | for color in {0..255} ; do # Colors |
- | #Display the color | + | # Display the color |
- | echo -en "\e[${fgbg};5;${color}m ${color}\t\e[0m" | + | printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color |
- | #Display 10 colors per lines | + | # Display 6 colors per lines |
- | if [ $((($color + 1) % 10)) == 0 ] ; then | + | if [ $((($color + 1) % 6)) == 4 ] ; then |
- | echo #New line | + | echo # New line |
- | fi | + | fi |
- | done | + | done |
- | echo #New line | + | echo # New line |
done | done | ||