:: Complete matrix of SGR parameters available
:: This definition also demonstrates the various configuration changes
:: which are used to control the way the table is generated
:: Requires 97 columns to display correctly
__DATA__
:: Select Graphic Rendition (SGR) parameters
:: #NUL# is treated as a special case to provide cells in that column
:: or row, but there is no row or column value applied to the cell.
:: This has the effect that the row or column has no SGR parameter applied
:: and so this will show the default.
:: #SPC# is a special case which can be used to make gaps in the table.
:: Whereas #NUL# still outputs the CELL text, #SPC# won't show anything in
:: that row. #SPC# can be used in columns to also provide a gap which matches
:: cell width.
:: #LBL# is also a special case similar to #SPC#. #LBL# makes it possible to
:: write a text label in the middle of a generated table for a particular row.
:: Formatting can be applied to the labels and an SGR RESET is automatically
:: applied at the end of the string.
__TABLE__
SET "UTF8.REQUIRED=#TRUE#"
:: The test text
SET "CELL= gYw "
SET "STUBHEAD=SGR"
:: Alignment properties for the cells and headers
REM SET "ALIGN.CELL=C"
REM SET "ALIGN.BOXHEAD=R"
REM SET "ALIGN.STUB=L"
REM SET "ALIGN.STUBHEAD=C"
:: Separator characters for cells and headers
REM SET "SEPARATOR.STUB= "
REM SET "SEPARATOR.STUB=│"
REM SET "SEPARATOR.BOXHEAD= "
REM SET "SEPARATOR.BOXHEAD=─"
REM SET "SEPARATOR.COL= "
REM SET "SEPARATOR.COL=╎"
REM SET "SEPARATOR.STUBHEAD_BOXHEAD= "
SET "SEPARATOR.STUBHEAD_BOXHEAD=│"
REM SET "SEPARATOR.STUBHEAD_BOXHEAD=▓▓"
REM SET "SEPARATOR.STUBHEAD_STUB= "
SET "SEPARATOR.STUBHEAD_STUB=─"
REM SET "SEPARATOR.STUBHEAD_STUB=▓"
REM SET "SEPARATOR.INTERSECT= "
REM SET "SEPARATOR.INTERSECT=┼"
SET "SEPARATOR.INTERSECT=┘"
REM SET "SEPARATOR.INTERSECT=▓▒▒░"
REM SET "SEPARATOR.BOXHEAD_BODY= "
REM SET "SEPARATOR.BOXHEAD_BODY=─"
REM SET "SEPARATOR.BOXHEAD_BODY=░"
REM SET "SEPARATOR.STUB_BODY= "
REM SET "SEPARATOR.STUB_BODY=│"
REM SET "SEPARATOR.STUB_BODY=░░"
REM SET "SEPARATOR.BOXHEADERS= "
REM SET "SEPARATOR.BOXHEADERS=╎"
REM SET "SEPARATOR.CELL= "
REM SET "SEPARATOR.CELL=╎"
:: Formatting for labels
SET "SECTION=!CSI!1;4m"
__TABLE:END__

:: Background
__COLS__
#NUL#
REM 1m
REM 2m
REM 3m
REM 4m
REM 5m
REM 6m
REM 7m
REM 8m
REM 9m
REM 21m
40m
41m
42m
43m
44m
45m
46m
47m
49m
100m
101m
102m
103m
104m
105m
106m
107m
__COLS:END__

:: [Intensity;][Attribute;]Foreground
__ROWS__
#NUL#
#SPC#
:: Attributes
#LBL# !SECTION!Attributes
1m
2m
3m
4m
5m
6m
7m
8m
9m
REM 10m
REM 11m
REM 12m
REM 13m
REM 14m
REM 15m
REM 16m
REM 17m
REM 18m
REM 19m
REM 20m
21m
REM 22m
REM 23m
REM 24m
REM 25m
REM 26m
REM 27m
REM 28m
REM 29m
#SPC#
:: Normal
#LBL# !SECTION!Normal
30m
31m
32m
33m
34m
35m
36m
37m
39m
90m
91m
92m
93m
94m
95m
96m
97m
#SPC#
:: Bold or increased intensity, 1
#LBL# !SECTION!Bold or increased intensity, 1
1;30m
1;31m
1;32m
1;33m
1;34m
1;35m
1;36m
1;37m
1;39m
1;90m
1;91m
1;92m
1;93m
1;94m
1;95m
1;96m
1;97m
#SPC#
:: Faint (decreased intensity), 2
#LBL# !SECTION!Faint (decreased intensity), 2
2;30m
2;31m
2;32m
2;33m
2;34m
2;35m
2;36m
2;37m
2;39m
2;90m
2;91m
2;92m
2;93m
2;94m
2;95m
2;96m
2;97m
#SPC#
:: Italic, 3
#LBL# !SECTION!Italic, 3
3;30m
3;31m
3;32m
3;33m
3;34m
3;35m
3;36m
3;37m
3;39m
3;90m
3;91m
3;92m
3;93m
3;94m
3;95m
3;96m
3;97m
#SPC#
:: Underline, 4
#LBL# !SECTION!Underline, 4
4;30m
4;31m
4;32m
4;33m
4;34m
4;35m
4;36m
4;37m
4;39m
4;90m
4;91m
4;92m
4;93m
4;94m
4;95m
4;96m
4;97m
#SPC#
:: Slow Blink, 5
#LBL# !SECTION!Slow Blink, 5
5;30m
5;31m
5;32m
5;33m
5;34m
5;35m
5;36m
5;37m
5;39m
5;90m
5;91m
5;92m
5;93m
5;94m
5;95m
5;96m
5;97m
#SPC#
:: Rapid Blink, 6
#LBL# !SECTION!Rapid Blink, 6
6;30m
6;31m
6;32m
6;33m
6;34m
6;35m
6;36m
6;37m
6;39m
6;90m
6;91m
6;92m
6;93m
6;94m
6;95m
6;96m
6;97m
#SPC#
:: Reverse video, 7
#LBL# !SECTION!Reverse video, 7
7;30m
7;31m
7;32m
7;33m
7;34m
7;35m
7;36m
7;37m
7;39m
7;90m
7;91m
7;92m
7;93m
7;94m
7;95m
7;96m
7;97m
#SPC#
:: Conceal, 8
#LBL# !SECTION!Conceal, 8
8;30m
8;31m
8;32m
8;33m
8;34m
8;35m
8;36m
8;37m
8;39m
8;90m
8;91m
8;92m
8;93m
8;94m
8;95m
8;96m
8;97m
#SPC#
:: Crossed-out, 9
#LBL# !SECTION!Crossed-out, 9
9;30m
9;31m
9;32m
9;33m
9;34m
9;35m
9;36m
9;37m
9;39m
9;90m
9;91m
9;92m
9;93m
9;94m
9;95m
9;96m
9;97m
#SPC#
:: Double Underline, 21
#LBL# !SECTION!Double Underline, 21
21;30m
21;31m
21;32m
21;33m
21;34m
21;35m
21;36m
21;37m
21;39m
21;90m
21;91m
21;92m
21;93m
21;94m
21;95m
21;96m
21;97m
__ROWS:END__
__DATA:END__