sgr-full: explore entire style space #1818

pull/1825/head
nick black 3 years ago
parent 9d7f07771b
commit e44ee78b2e
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -22,50 +22,48 @@ int main(void){
ncplane_putstr_yx(n, y++, 0, "a ═ italic");
ncplane_set_styles(n, NCSTYLE_BOLD);
ncplane_putstr_yx(n, y++, 0, "a ═ bold");
ncplane_set_styles(n, NCSTYLE_REVERSE);
ncplane_putstr_yx(n, y++, 0, "a ═ reverse");
ncplane_set_styles(n, NCSTYLE_UNDERCURL);
ncplane_putstr_yx(n, y++, 0, "a ═ undercurl");
ncplane_set_styles(n, NCSTYLE_UNDERLINE);
ncplane_putstr_yx(n, y++, 0, "a ═ underline");
ncplane_set_styles(n, NCSTYLE_BLINK);
ncplane_putstr_yx(n, y++, 0, "a ═ blink");
ncplane_set_styles(n, NCSTYLE_STRUCK);
ncplane_putstr_yx(n, y++, 0, "a ═ struck");
ncplane_set_styles(n, NCSTYLE_ITALIC | NCSTYLE_BOLD);
ncplane_putstr_yx(n, y++, 0, "a ═ italic bold");
ncplane_set_styles(n, NCSTYLE_ITALIC | NCSTYLE_REVERSE);
ncplane_putstr_yx(n, y++, 0, "a ═ italic reverse");
ncplane_set_styles(n, NCSTYLE_ITALIC | NCSTYLE_UNDERLINE);
ncplane_putstr_yx(n, y++, 0, "a ═ italic underline");
ncplane_set_styles(n, NCSTYLE_ITALIC | NCSTYLE_UNDERCURL);
ncplane_putstr_yx(n, y++, 0, "a ═ italic undercurl");
ncplane_set_styles(n, NCSTYLE_ITALIC | NCSTYLE_BLINK);
ncplane_putstr_yx(n, y++, 0, "a ═ italic blink");
ncplane_set_styles(n, NCSTYLE_ITALIC | NCSTYLE_UNDERLINE);
ncplane_putstr_yx(n, y++, 0, "a ═ italic underline");
ncplane_set_styles(n, NCSTYLE_ITALIC | NCSTYLE_STRUCK);
ncplane_putstr_yx(n, y++, 0, "a ═ italic struck");
ncplane_set_styles(n, NCSTYLE_ITALIC | NCSTYLE_STRUCK);
ncplane_putstr_yx(n, y++, 0, "a ═ italic struck");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_BOLD);
ncplane_putstr_yx(n, y++, 0, "a ═ struck bold");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_REVERSE);
ncplane_putstr_yx(n, y++, 0, "a ═ struck reverse");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_UNDERLINE);
ncplane_putstr_yx(n, y++, 0, "a ═ struck underline");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_UNDERCURL);
ncplane_putstr_yx(n, y++, 0, "a ═ struck undercurl");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_BLINK);
ncplane_putstr_yx(n, y++, 0, "a ═ struck blink");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_REVERSE);
ncplane_putstr_yx(n, y++, 0, "a ═ bold reverse");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_UNDERLINE);
ncplane_putstr_yx(n, y++, 0, "a ═ bold underline");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_UNDERLINE);
ncplane_putstr_yx(n, y++, 0, "a ═ struck underline");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_UNDERCURL);
ncplane_putstr_yx(n, y++, 0, "a ═ bold undercurl");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_BLINK);
ncplane_putstr_yx(n, y++, 0, "a ═ bold blink");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_REVERSE | NCSTYLE_UNDERLINE |
NCSTYLE_BLINK | NCSTYLE_ITALIC | NCSTYLE_STRUCK);
ncplane_putstr_yx(n, y++, 0, "a ═ whoomp! there it is");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_REVERSE | NCSTYLE_UNDERCURL |
NCSTYLE_BLINK | NCSTYLE_ITALIC | NCSTYLE_STRUCK);
ncplane_putstr_yx(n, y++, 0, "a ═ whoomp! there it curls");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_UNDERLINE);
ncplane_putstr_yx(n, y++, 0, "a ═ bold underline");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_UNDERCURL | NCSTYLE_ITALIC);
ncplane_putstr_yx(n, y++, 0, "a ═ bold undercurl italic");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_UNDERLINE | NCSTYLE_ITALIC);
ncplane_putstr_yx(n, y++, 0, "a ═ bold underline italic");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_UNDERCURL | NCSTYLE_ITALIC);
ncplane_putstr_yx(n, y++, 0, "a ═ struck undercurl italic");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_UNDERLINE | NCSTYLE_ITALIC);
ncplane_putstr_yx(n, y++, 0, "a ═ struck underline italic");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_UNDERCURL | NCSTYLE_BOLD);
ncplane_putstr_yx(n, y++, 0, "a ═ struck undercurl bold");
ncplane_set_styles(n, NCSTYLE_STRUCK | NCSTYLE_UNDERLINE | NCSTYLE_BOLD);
ncplane_putstr_yx(n, y++, 0, "a ═ struck underline bold");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_UNDERLINE | NCSTYLE_ITALIC | NCSTYLE_STRUCK);
ncplane_putstr_yx(n, y++, 0, "a ═ bold underline italic struck");
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_UNDERCURL | NCSTYLE_ITALIC | NCSTYLE_STRUCK);
ncplane_putstr_yx(n, y++, 0, "a ═ bold undercurl italic struck");
ncplane_set_styles(n, NCSTYLE_NONE);
if(notcurses_render(nc)){

Loading…
Cancel
Save