scripting:terminalcodes

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
scripting:terminalcodes [2015/09/03 11:14]
ormaaj [Cursor handling] restore current cursor position -> saved cursor position.
scripting:terminalcodes [2019/08/23 13:22]
artmieu
Line 70: Line 70:
 |''​[ 1 m''​|''​bold''​|Set "​bright"​ attribute| |''​[ 1 m''​|''​bold''​|Set "​bright"​ attribute|
 |''​[ 2 m''​|''​dim''​|Set "​dim"​ attribute| |''​[ 2 m''​|''​dim''​|Set "​dim"​ attribute|
 +|''​[ 3 m''​|''​smso''​|Set "​standout"​ attribute|
 |''​[ 4 m''​|set ''​smul''​ unset ''​rmul''​ :?:|Set "​underscore"​ (underlined text) attribute| |''​[ 4 m''​|set ''​smul''​ unset ''​rmul''​ :?:|Set "​underscore"​ (underlined text) attribute|
 |''​[ 5 m''​|''​blink''​|Set "​blink"​ attribute| |''​[ 5 m''​|''​blink''​|Set "​blink"​ attribute|
Line 99: Line 100:
 | ''​[ 4 6 m'' ​ | ''​setab 6'' ​         | Set **background** to color #6 - **cyan** ​    | | ''​[ 4 6 m'' ​ | ''​setab 6'' ​         | Set **background** to color #6 - **cyan** ​    |
 | ''​[ 4 7 m'' ​ | ''​setab 7'' ​         | Set **background** to color #7 - **white** ​   | | ''​[ 4 7 m'' ​ | ''​setab 7'' ​         | Set **background** to color #7 - **white** ​   |
-| ''​[ 4 9 m'' ​ | ''​setaf 9'' ​         | Set **default** color as background color     |+| ''​[ 4 9 m'' ​ | ''​setab 9'' ​         | Set **default** color as background color     |
  
 ==== Misc codes ==== ==== Misc codes ====
Line 145: Line 146:
 === Additional colors === === Additional colors ===
  
-Some terminal emulators support ​many additional colors. The most common extension used by xterm-compatible terminals supports 256 colors. These can be generated by ''​tput''​ with ''​seta{f,​b} [0-255]''​ when the ''​TERM''​ value has a ''​-256color''​ suffix. ​Konsole supports ​full 24-bit colors, and as of KDE 4.9 any X11 color code can be written directly into a special escape sequence. ​Other terminals may offer similar extensionsFew, if any programs ​are able to make use of anything beyond 256, and tput doesn'​t know about them. Colors beyond 16 usually only apply to modern terminal emulators running in graphical environments.+Some terminal emulators support additional colors. The most common extension used by xterm-compatible terminals supports 256 colors. These can be generated by ''​tput''​ with ''​seta{f,​b} [0-255]''​ when the ''​TERM''​ value has a ''​-256color''​ suffix. 
 +[[https://​gist.github.com/​XVilka/​8346728#​now-supporting-truecolour|Some terminals]] also support ​full 24-bit colors, and any X11 color code can be written directly into a special escape sequence. ​([[https://​gist.github.com/​XVilka/​8346728|More infos]]) Only a few programs make use of anything beyond 256 colors, and tput doesn'​t know about them. Colors beyond 16 usually only apply to modern terminal emulators running in graphical environments.
  
 The Virtual Terminal implemented in the Linux kernel supports only 16 colors, and the usual default terminfo entry for ''​TERM=linux''​ defines only 8. There is sometimes an alternate "​linux-16color"​ that you can switch to, to get the other 8 colors. The Virtual Terminal implemented in the Linux kernel supports only 16 colors, and the usual default terminfo entry for ''​TERM=linux''​ defines only 8. There is sometimes an alternate "​linux-16color"​ that you can switch to, to get the other 8 colors.
  • scripting/terminalcodes.txt
  • Last modified: 2019/08/23 13:22
  • by artmieu