| 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" |
| 32 |
?screen_cell 0,6 = {0x47} width=1 attrs={} fg=rgb(224,0,0) bg=rgb(0,0,0) |
| 33 |
|
| 34 |
!Background |
| 35 |
PUSH "\e[42mH\e[m" |
| 36 |
?screen_cell 0,7 = {0x48} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,224,0) |
| 37 |
|
| 38 |
!EL sets reverse and colours to end of line |
| 39 |
PUSH "\e[H\e[7;33;44m\e[K" |
| 40 |
?screen_cell 0,0 = {} width=1 attrs={R} fg=rgb(224,224,0) bg=rgb(0,0,224) |
| 41 |
?screen_cell 0,79 = {} width=1 attrs={R} fg=rgb(224,224,0) bg=rgb(0,0,224) |
| 42 |
|
| 43 |
!DECSCNM xors reverse for entire screen |
| 44 |
PUSH "\e[?5h" |
| 45 |
?screen_cell 0,0 = {} width=1 attrs={} fg=rgb(224,224,0) bg=rgb(0,0,224) |
| 46 |
?screen_cell 0,79 = {} width=1 attrs={} fg=rgb(224,224,0) bg=rgb(0,0,224) |
| 47 |
?screen_cell 1,0 = {} width=1 attrs={R} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 48 |
PUSH "\e[?5\$p" |
| 49 |
output "\e[?5;1\$y" |
| 50 |
PUSH "\e[?5l" |
| 51 |
?screen_cell 0,0 = {} width=1 attrs={R} fg=rgb(224,224,0) bg=rgb(0,0,224) |
| 52 |
?screen_cell 0,79 = {} width=1 attrs={R} fg=rgb(224,224,0) bg=rgb(0,0,224) |
| 53 |
?screen_cell 1,0 = {} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) |
| 54 |
PUSH "\e[?5\$p" |
| 55 |
output "\e[?5;2\$y" |