fputs(TERMINAL_RESET, stdout);
}
- display_t * cterm = &(display_t) {
- .key = "cterm",
- .callback = cterm_render_callback
- };
+
+void fun(const char * const attribute,
+ const char * const color,
+ hl_group_t * * group){
+ terminal_hl_t * t = (terminal_hl_t *)malloc(sizeof(terminal_hl_t));
+ t->attribute = attribute;
+ t->foreground_color = color;;
+ t->background_color = NULL;
+ (*group) = (hl_group_t *)malloc(sizeof(hl_group_t));
+ (*group)->link = NULL;
+ (*group)->attributes = (void*)t;
+}
+
- int terminal_hl_init(void){
+ int terminal_hl_init(void) {
hl_init();
new_display_mode(cterm);
//