Allow specifying text formatting in tab_title_template

Fixes #3146
This commit is contained in:
Kovid Goyal
2020-12-08 21:42:40 +05:30
parent 6e83b4c1bc
commit 19870983ca
7 changed files with 70 additions and 5 deletions

View File

@@ -52,7 +52,6 @@ utf8(char_type codepoint) {
// }}}
// Macros {{{
#define MAX_PARAMS 256
#define IS_DIGIT \
case '0': \
case '1': \
@@ -465,7 +464,10 @@ repr_csi_params(unsigned int *params, unsigned int num_params) {
return buf;
}
static inline void
#ifdef DUMP_COMMANDS
static
#endif
void
parse_sgr(Screen *screen, uint32_t *buf, unsigned int num, unsigned int *params, PyObject DUMP_UNUSED *dump_callback, const char *report_name DUMP_UNUSED, Region *region) {
enum State { START, NORMAL, MULTIPLE, COLOR, COLOR1, COLOR3 };
enum State state = START;