Lines 61-70
Link Here
|
61 |
CONF_BOOL(chord_shift_enter, 0, TRUE, "Shift-Enter chording"); |
61 |
CONF_BOOL(chord_shift_enter, 0, TRUE, "Shift-Enter chording"); |
62 |
|
62 |
|
63 |
#define VTERM_COLOR_FROM_GDK_COLOR(c) \ |
63 |
#define VTERM_COLOR_FROM_GDK_COLOR(c) \ |
64 |
((VTermColor){ .red = (c).red / 257, .green = (c).green / 257, .blue = (c).blue / 257 }) |
64 |
((VTermColor){ .type = 0, .rgb.red = (c).red / 257, .rgb.green = (c).green / 257, .rgb.blue = (c).blue / 257 }) |
65 |
|
65 |
|
66 |
#define GDK_COLOR_FROM_VTERM_COLOR(c) \ |
66 |
#define GDK_COLOR_FROM_VTERM_COLOR(c) \ |
67 |
((GdkColor){ .red = 257 * (c).red, .green = 257 * (c).green, .blue = 257 * (c).blue }) |
67 |
((GdkColor){ .red = 257 * (c).rgb.red, .green = 257 * (c).rgb.green, .blue = 257 * (c).rgb.blue }) |
68 |
|
68 |
|
69 |
#ifdef DEBUG |
69 |
#ifdef DEBUG |
70 |
# define DEBUG_PRINT_INPUT |
70 |
# define DEBUG_PRINT_INPUT |
Lines 831-836
Link Here
|
831 |
flush_pending(pt); |
831 |
flush_pending(pt); |
832 |
} |
832 |
} |
833 |
|
833 |
|
|
|
834 |
vterm_screen_convert_color_to_rgb(pt->vts, &cell->fg); |
834 |
col = GDK_COLOR_FROM_VTERM_COLOR(cell->fg); |
835 |
col = GDK_COLOR_FROM_VTERM_COLOR(cell->fg); |
835 |
|
836 |
|
836 |
if(cursoroverride) { |
837 |
if(cursoroverride) { |
Lines 844-849
Link Here
|
844 |
pt->pen.fg_col = col; |
845 |
pt->pen.fg_col = col; |
845 |
} |
846 |
} |
846 |
|
847 |
|
|
|
848 |
vterm_screen_convert_color_to_rgb(pt->vts, &cell->bg); |
847 |
col = GDK_COLOR_FROM_VTERM_COLOR(cell->bg); |
849 |
col = GDK_COLOR_FROM_VTERM_COLOR(cell->bg); |
848 |
|
850 |
|
849 |
if(cursoroverride) |
851 |
if(cursoroverride) |