Skip to content

VTERM Color has no member named indexed #323

@dilzeem

Description

@dilzeem

Tried to compile the vterm module, and I get the following error.

Is there something that I need to set up with regards to the VTermColor?
OS: Ubuntu 18.04 (WSL1)
Cmake Version: 3.17.2


/home/dilzeem/libterm/vterm-module.c: In function ‘compare_cells’:
/home/dilzeem/libterm/vterm-module.c:597:20: warning: implicit declaration of function ‘vterm_color_is_equal’; did you mean ‘vterm_screen_is_eol’? [-Wimplicit-function-declaration]
   equal = equal && vterm_color_is_equal(&a->fg, &b->fg);
                    ^~~~~~~~~~~~~~~~~~~~
                    vterm_screen_is_eol
/home/dilzeem/libterm/vterm-module.c: In function ‘cell_rgb_color’:
/home/dilzeem/libterm/vterm-module.c:734:7: warning: implicit declaration of function ‘VTERM_COLOR_IS_DEFAULT_FG’ [-Wimplicit-function-declaration]
   if (VTERM_COLOR_IS_DEFAULT_FG(color)) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/dilzeem/libterm/vterm-module.c:737:7: warning: implicit declaration of function ‘VTERM_COLOR_IS_DEFAULT_BG’ [-Wimplicit-function-declaration]
   if (VTERM_COLOR_IS_DEFAULT_BG(color)) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/dilzeem/libterm/vterm-module.c:740:7: warning: implicit declaration of function ‘VTERM_COLOR_IS_INDEXED’ [-Wimplicit-function-declaration]
   if (VTERM_COLOR_IS_INDEXED(color)) {
       ^~~~~~~~~~~~~~~~~~~~~~
/home/dilzeem/libterm/vterm-module.c:741:14: error: ‘VTermColor {aka struct <anonymous>}’ has no member named ‘indexed’
     if (color->indexed.idx < 16) {
              ^~
/home/dilzeem/libterm/vterm-module.c:742:40: error: ‘VTermColor {aka struct <anonymous>}’ has no member named ‘indexed’
       return vterm_get_color(env, color->indexed.idx);
                                        ^~
/home/dilzeem/libterm/vterm-module.c:745:49: error: ‘VTermColor {aka struct <anonymous>}’ has no member named ‘indexed’
       vterm_state_get_palette_color(state, color->indexed.idx, color);
                                                 ^~
/home/dilzeem/libterm/vterm-module.c:747:14: warning: implicit declaration of function ‘VTERM_COLOR_IS_RGB’ [-Wimplicit-function-declaration]
   } else if (VTERM_COLOR_IS_RGB(color)) {
              ^~~~~~~~~~~~~~~~~~
/home/dilzeem/libterm/vterm-module.c:752:45: error: ‘VTermColor {aka struct <anonymous>}’ has no member named ‘rgb’
   snprintf(buffer, 8, "#%02X%02X%02X", color->rgb.red, color->rgb.green,
                                             ^~
/home/dilzeem/libterm/vterm-module.c:752:61: error: ‘VTermColor {aka struct <anonymous>}’ has no member named ‘rgb’
   snprintf(buffer, 8, "#%02X%02X%02X", color->rgb.red, color->rgb.green,
                                                             ^~
/home/dilzeem/libterm/vterm-module.c:753:17: error: ‘VTermColor {aka struct <anonymous>}’ has no member named ‘rgb’
            color->rgb.blue);
                 ^~
CMakeFiles/vterm-module.dir/build.make:82: recipe for target 'CMakeFiles/vterm-module.dir/vterm-module.c.o' failed
make[2]: *** [CMakeFiles/vterm-module.dir/vterm-module.c.o] Error 1
CMakeFiles/Makefile2:96: recipe for target 'CMakeFiles/vterm-module.dir/all' failed
make[1]: *** [CMakeFiles/vterm-module.dir/all] Error 2
Makefile:103: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions