… | |
… | |
1040 | large number (e.g. C<987654321>) to effectively disable the timeout. |
1040 | large number (e.g. C<987654321>) to effectively disable the timeout. |
1041 | |
1041 | |
1042 | =item B<backspacekey:> I<string> |
1042 | =item B<backspacekey:> I<string> |
1043 | |
1043 | |
1044 | The string to send when the backspace key is pressed. If set to B<DEC> |
1044 | The string to send when the backspace key is pressed. If set to B<DEC> |
1045 | or unset it will send B<Delete> (code 127) or, if shifted, B<Backspace> |
1045 | or unset it will send B<Delete> (code 127) or, with control, B<Backspace> |
1046 | (code 8) - which can be reversed with the appropriate DEC private mode |
1046 | (code 8) - which can be reversed with the appropriate DEC private mode |
1047 | escape sequence. |
1047 | escape sequence. |
1048 | |
1048 | |
1049 | =item B<deletekey:> I<string> |
1049 | =item B<deletekey:> I<string> |
1050 | |
1050 | |
… | |
… | |
1503 | |
1503 | |
1504 | index_88 = (r * 4 + g) * 4 + b + 16 # r, g, b = 0..3 |
1504 | index_88 = (r * 4 + g) * 4 + b + 16 # r, g, b = 0..3 |
1505 | index_256 = (r * 16 + g) * 16 + b + 16 # r, g, b = 0..15 |
1505 | index_256 = (r * 16 + g) * 16 + b + 16 # r, g, b = 0..15 |
1506 | |
1506 | |
1507 | The grayscale ramp uses indices 80..87 (232..239), from 10% to 90% in 10% |
1507 | The grayscale ramp uses indices 80..87 (232..239), from 10% to 90% in 10% |
1508 | steps (1/26 to 25/26 in 1/26 steps). |
1508 | steps (1/26 to 25/26 in 1/26 steps) - black and white are already part of |
|
|
1509 | the RGB cube. |
1509 | |
1510 | |
1510 | Together, all those colours implement the 88 (256) colour xterm |
1511 | Together, all those colours implement the 88 (256) colour xterm |
1511 | colours. Only the first 16 can be changed using resources currently, the |
1512 | colours. Only the first 16 can be changed using resources currently, the |
1512 | rest can only be changed via command sequences ("escape codes"). |
1513 | rest can only be changed via command sequences ("escape codes"). |
|
|
1514 | |
|
|
1515 | Applications are advised to use terminfo or command sequences to discover |
|
|
1516 | number and RGB values of all colours (yes, you can query this...). |
1513 | |
1517 | |
1514 | Note that B<-rv> (B<"reverseVideo: True">) simulates reverse video by |
1518 | Note that B<-rv> (B<"reverseVideo: True">) simulates reverse video by |
1515 | always swapping the foreground/background colours. This is in contrast to |
1519 | always swapping the foreground/background colours. This is in contrast to |
1516 | I<xterm>(1) where the colours are only swapped if they have not otherwise |
1520 | I<xterm>(1) where the colours are only swapped if they have not otherwise |
1517 | been specified. For example, |
1521 | been specified. For example, |