Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 1 | INIT |
| 2 | WANTSCREEN |
| 3 | |
| 4 | RESET |
| 5 | |
| 6 | !Plain |
| 7 | PUSH "A" |
| 8 | ?screen_cell 0,0 = {0x41} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 9 | |
| 10 | !Bold |
| 11 | PUSH "\e[1mB" |
| 12 | ?screen_cell 0,1 = {0x42} width=1 attrs={B} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 13 | |
| 14 | !Italic |
| 15 | PUSH "\e[3mC" |
| 16 | ?screen_cell 0,2 = {0x43} width=1 attrs={BI} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 17 | |
| 18 | !Underline |
| 19 | PUSH "\e[4mD" |
| 20 | ?screen_cell 0,3 = {0x44} width=1 attrs={BU1I} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 21 | |
| 22 | !Reset |
| 23 | PUSH "\e[mE" |
| 24 | ?screen_cell 0,4 = {0x45} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 25 | |
| 26 | !Font |
| 27 | PUSH "\e[11mF\e[m" |
| 28 | ?screen_cell 0,5 = {0x46} width=1 attrs={F1} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 29 | |
| 30 | !Foreground |
| 31 | PUSH "\e[31mG\e[m" |
Bram Moolenaar | e5886cc | 2020-05-21 20:10:04 +0200 | [diff] [blame] | 32 | ?screen_cell 0,6 = {0x47} width=1 attrs={} fg=idx(1) bg=rgb(0,0,0) |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 33 | |
| 34 | !Background |
| 35 | PUSH "\e[42mH\e[m" |
Bram Moolenaar | e5886cc | 2020-05-21 20:10:04 +0200 | [diff] [blame] | 36 | ?screen_cell 0,7 = {0x48} width=1 attrs={} fg=rgb(240,240,240) bg=idx(2) |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 37 | |
Bram Moolenaar | 6a12d26 | 2022-10-16 19:26:52 +0100 | [diff] [blame] | 38 | !Super/subscript |
| 39 | PUSH "x\e[74m0\e[73m2\e[m" |
| 40 | ?screen_cell 0,8 = {0x78} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 41 | ?screen_cell 0,9 = {0x30} width=1 attrs={S_} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 42 | ?screen_cell 0,10 = {0x32} width=1 attrs={S^} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 43 | |
zeertzjq | b00df7a | 2023-08-08 11:03:00 +0800 | [diff] [blame] | 44 | !EL sets only colours to end of line, not other attrs |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 45 | PUSH "\e[H\e[7;33;44m\e[K" |
Bram Moolenaar | e5886cc | 2020-05-21 20:10:04 +0200 | [diff] [blame] | 46 | ?screen_cell 0,0 = {} width=1 attrs={} fg=idx(3) bg=idx(4) |
| 47 | ?screen_cell 0,79 = {} width=1 attrs={} fg=idx(3) bg=idx(4) |
zeertzjq | b00df7a | 2023-08-08 11:03:00 +0800 | [diff] [blame] | 48 | |
| 49 | !DECSCNM xors reverse for entire screen |
| 50 | PUSH "R\e[?5h" |
| 51 | ?screen_cell 0,0 = {0x52} width=1 attrs={} fg=idx(3) bg=idx(4) |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 52 | ?screen_cell 1,0 = {} width=1 attrs={R} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 53 | PUSH "\e[?5\$p" |
| 54 | output "\e[?5;1\$y" |
| 55 | PUSH "\e[?5l" |
zeertzjq | b00df7a | 2023-08-08 11:03:00 +0800 | [diff] [blame] | 56 | ?screen_cell 0,0 = {0x52} width=1 attrs={R} fg=idx(3) bg=idx(4) |
Bram Moolenaar | e4f25e4 | 2017-07-07 11:54:15 +0200 | [diff] [blame] | 57 | ?screen_cell 1,0 = {} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 58 | PUSH "\e[?5\$p" |
| 59 | output "\e[?5;2\$y" |
zeertzjq | b00df7a | 2023-08-08 11:03:00 +0800 | [diff] [blame] | 60 | |
| 61 | !Set default colours |
| 62 | RESET |
| 63 | PUSH "ABC\e[31mDEF\e[m" |
| 64 | ?screen_cell 0,0 = {0x41} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 65 | ?screen_cell 0,3 = {0x44} width=1 attrs={} fg=idx(1) bg=rgb(0,0,0) |
| 66 | SETDEFAULTCOL rgb(252,253,254) |
| 67 | ?screen_cell 0,0 = {0x41} width=1 attrs={} fg=rgb(252,253,254) bg=rgb(0,0,0) |
| 68 | ?screen_cell 0,3 = {0x44} width=1 attrs={} fg=idx(1) bg=rgb(0,0,0) |
| 69 | SETDEFAULTCOL rgb(250,250,250) rgb(10,20,30) |
| 70 | ?screen_cell 0,0 = {0x41} width=1 attrs={} fg=rgb(250,250,250) bg=rgb(10,20,30) |
| 71 | ?screen_cell 0,3 = {0x44} width=1 attrs={} fg=idx(1) bg=rgb(10,20,30) |