]> git.xolatile.top Git - public-libhl.git/commitdiff
Merge branch 'master' of https://git.lain.church/emil/hl
authoranon <anon@anon.anon>
Mon, 28 Aug 2023 13:54:01 +0000 (15:54 +0200)
committeranon <anon@anon.anon>
Mon, 28 Aug 2023 13:54:01 +0000 (15:54 +0200)
1  2 
source/hl.h
source/terminal_hl.h

diff --cc source/hl.h
Simple merge
index c71cdaa6c27d0ae77d392db3e472136e9d4c5972,6b2f597c512d2056acc552807a49c8631da8a335..5fe194742a59fe9947668a97da47f508bd20312a
@@@ -29,24 -38,7 +42,20 @@@ void cterm_render_callback(const char 
        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);
        //