blob: 1cb6324bda634dbbc6f8d1db9712574c3d2ea29a [file] [log] [blame]
Bram Moolenaare4f25e42017-07-07 11:54:15 +02001INIT
2WANTSCREEN
3
4RESET
5
6!Plain
7PUSH "A"
8 ?screen_cell 0,0 = {0x41} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)
9
10!Bold
11PUSH "\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
15PUSH "\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
19PUSH "\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
23PUSH "\e[mE"
24 ?screen_cell 0,4 = {0x45} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)
25
26!Font
27PUSH "\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
31PUSH "\e[31mG\e[m"
Bram Moolenaare5886cc2020-05-21 20:10:04 +020032 ?screen_cell 0,6 = {0x47} width=1 attrs={} fg=idx(1) bg=rgb(0,0,0)
Bram Moolenaare4f25e42017-07-07 11:54:15 +020033
34!Background
35PUSH "\e[42mH\e[m"
Bram Moolenaare5886cc2020-05-21 20:10:04 +020036 ?screen_cell 0,7 = {0x48} width=1 attrs={} fg=rgb(240,240,240) bg=idx(2)
Bram Moolenaare4f25e42017-07-07 11:54:15 +020037
Bram Moolenaar6a12d262022-10-16 19:26:52 +010038!Super/subscript
39PUSH "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
Bram Moolenaare4f25e42017-07-07 11:54:15 +020044!EL sets reverse and colours to end of line
45PUSH "\e[H\e[7;33;44m\e[K"
Bram Moolenaare5886cc2020-05-21 20:10:04 +020046 ?screen_cell 0,0 = {} width=1 attrs={R} fg=idx(3) bg=idx(4)
47 ?screen_cell 0,79 = {} width=1 attrs={R} fg=idx(3) bg=idx(4)
Bram Moolenaare4f25e42017-07-07 11:54:15 +020048
49!DECSCNM xors reverse for entire screen
50PUSH "\e[?5h"
Bram Moolenaare5886cc2020-05-21 20:10:04 +020051 ?screen_cell 0,0 = {} width=1 attrs={} fg=idx(3) bg=idx(4)
52 ?screen_cell 0,79 = {} width=1 attrs={} fg=idx(3) bg=idx(4)
Bram Moolenaare4f25e42017-07-07 11:54:15 +020053 ?screen_cell 1,0 = {} width=1 attrs={R} fg=rgb(240,240,240) bg=rgb(0,0,0)
54PUSH "\e[?5\$p"
55 output "\e[?5;1\$y"
56PUSH "\e[?5l"
Bram Moolenaare5886cc2020-05-21 20:10:04 +020057 ?screen_cell 0,0 = {} width=1 attrs={R} fg=idx(3) bg=idx(4)
58 ?screen_cell 0,79 = {} width=1 attrs={R} fg=idx(3) bg=idx(4)
Bram Moolenaare4f25e42017-07-07 11:54:15 +020059 ?screen_cell 1,0 = {} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)
60PUSH "\e[?5\$p"
61 output "\e[?5;2\$y"