@@ -33,17 +33,17 @@ static int ramp24[] = {
3333 0x85 , 0x90 , 0x9B , 0xA6 , 0xB1 , 0xBC , 0xC7 , 0xD2 , 0xDD , 0xE8 , 0xF3 , 0xFF ,
3434};
3535
36- static bool lookup_colour_ansi (const VTermState * state , long index , VTermColor * col )
36+ static int lookup_colour_ansi (const VTermState * state , long index , VTermColor * col )
3737{
3838 if (index >= 0 && index < 16 ) {
3939 * col = state -> colors [index ];
40- return true ;
40+ return TRUE ;
4141 }
4242
43- return false ;
43+ return FALSE ;
4444}
4545
46- static bool lookup_colour_palette (const VTermState * state , long index , VTermColor * col )
46+ static int lookup_colour_palette (const VTermState * state , long index , VTermColor * col )
4747{
4848 if (index >= 0 && index < 16 ) {
4949 /* Normal 8 colours or high intensity - parse as palette 0 */
@@ -57,7 +57,7 @@ static bool lookup_colour_palette(const VTermState *state, long index, VTermColo
5757 col -> green = ramp6 [index /6 % 6 ];
5858 col -> red = ramp6 [index /6 /6 % 6 ];
5959
60- return true ;
60+ return TRUE ;
6161 }
6262 else if (index >= 232 && index < 256 ) {
6363 /* 24 greyscales */
@@ -67,10 +67,10 @@ static bool lookup_colour_palette(const VTermState *state, long index, VTermColo
6767 col -> green = ramp24 [index ];
6868 col -> red = ramp24 [index ];
6969
70- return true ;
70+ return TRUE ;
7171 }
7272
73- return false ;
73+ return FALSE ;
7474}
7575
7676static int lookup_colour (const VTermState * state , int palette , const long args [], int argcount , VTermColor * col , int * index )
0 commit comments