Skip to content

Commit

Permalink
term_esc_rgb: add note about ITU T.416 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Dec 22, 2019
1 parent d50ee9e commit 8b1b2eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ term_esc_rgb(notcurses* nc __attribute__ ((unused)), FILE* out, int esc,
return -1;
}*/
#define RGBESC1 "\x1b" "["
// we'd like to use the proper ITU T.416 colon syntax i.e. "8:2::", but it is
// not supported by several terminal emulators :/.
#define RGBESC2 "8;2;"
// rrr;ggg;bbbm
char rgbesc[] = RGBESC1 " " RGBESC2 " ";
Expand Down

0 comments on commit 8b1b2eb

Please sign in to comment.