Changeset 226 for libcaca/trunk/NOTES
- Timestamp:
- Nov 27, 2003, 10:56:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/NOTES
r225 r226 4 4 many terminal emulators and tried to summarise which combinations 5 5 worked properly and which ones did not. 6 7 From termcap(5): 8 9 set_a_background setab AB Set background 10 color to #1, using 11 ANSI escape 12 set_a_foreground setaf AF Set foreground 13 color to #1, using 14 ANSI escape 15 From the xterm terminfo: 16 17 setab=\E[4%p1%dm, setaf=\E[3%p1%dm 18 19 From the xterm-16color terminfo: 20 21 setab=\E[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm, 22 setaf=\E[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm, 23 24 (http://www.sct.gu.edu.au/~anthony/info/X/Xterm_xf86.terminfo) 6 25 7 26 o I tested the following terminals: … … 21 40 22 41 o In most terminals, \e[3xm and \[4xm respectively set the foreground 23 and background colours. x is a ncolour between 0 and 7 or the value24 9 for default value.42 and background colours. x is a colour between 0 and 7 or the value 43 9 for default colour (may be transparent). 25 44 26 45 \e[0m sets everything to normal, \e[1m sets bold, \e[5m sets blink … … 36 55 for blink in '' '\e[5m'; do 37 56 for bold in '' '\e[1m'; do 38 echo -ne "$bold$blink$invert"'\e[3 4m\e[43m'hop'\e[0m '57 echo -ne "$bold$blink$invert"'\e[33m\e[44m'hop'\e[0m ' 39 58 echo "($bold$blink$invert)" 40 59 done … … 49 68 50 69 Almost works on: 51 + xterm (bright bg works for blue, but not for red or yellow) 70 + xterm (bright bg only works when fg is bright and then inverted, 71 but then fg is not bright) 52 72 53 73 Fails on: … … 75 95 + pterm 76 96 77 Failed (\e[9x and \e[10x don't work) on:97 Failed (\e[9x and \e[10x don't do anything) on: 78 98 + Eterm 79 99 + aterm, wterm, rxvt 80 100 + mlterm 81 + linux 101 + Linux console 102 103 o How to draw bright colours on any terminal? 104 105 '\e[93;104m' -> bright yellow on bright blue 106 doesn't work on mlterm, gnome-terminal, konsole 107 108 '\e[5;1;33;44m' -> bright yellow on bright blue 109 doesn't work on mlterm, aterm/wterm/rxvt, Eterm, console 110 111 '\e[5;1;33;44;93;104m' -> bright yellow on bright blue 112 works on gnome-terminal, xterm, pterm, aterm/wterm/rxvt, console 113 doesn't work on konsole 82 114 83 115 o S-Lang:
Note: See TracChangeset
for help on using the changeset viewer.