comparison src/libvterm/include/vterm.h @ 12966:c5bccd50100e v8.0.1359

patch 8.0.1359: libvterm ANSI colors can not always be recognized commit https://github.com/vim/vim/commit/46359e198f6d6884dc3d3c4a3e46625f1b2a2ad2 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 29 22:33:38 2017 +0100 patch 8.0.1359: libvterm ANSI colors can not always be recognized Problem: Libvterm ANSI colors can not always be recognized from the RGB values. The default color is wrong when t_RB is empty. Solution: Add the ANSI color index to VTermColor.
author Christian Brabandt <cb@256bit.org>
date Wed, 29 Nov 2017 22:45:05 +0100
parents ca4931a20f8c
children a62b0bbc8834
comparison
equal deleted inserted replaced
12965:24c73ddf8b38 12966:c5bccd50100e
77 rect->start_row += row_delta; rect->end_row += row_delta; 77 rect->start_row += row_delta; rect->end_row += row_delta;
78 rect->start_col += col_delta; rect->end_col += col_delta; 78 rect->start_col += col_delta; rect->end_col += col_delta;
79 } 79 }
80 #endif 80 #endif
81 81
82 /* The ansi_index is used for the lower 16 colors, which can be set to any
83 * color. */
84 #define VTERM_ANSI_INDEX_DEFAULT 0 /* color cleared */
85 #define VTERM_ANSI_INDEX_MIN 1
86 #define VTERM_ANSI_INDEX_MAX 16
87 #define VTERM_ANSI_INDEX_NONE 255 /* non-ANSI color, use red/green/blue */
88
82 typedef struct { 89 typedef struct {
83 uint8_t red, green, blue; 90 uint8_t red, green, blue;
91 uint8_t ansi_index;
84 } VTermColor; 92 } VTermColor;
85 93
86 typedef enum { 94 typedef enum {
87 /* VTERM_VALUETYPE_NONE = 0 */ 95 /* VTERM_VALUETYPE_NONE = 0 */
88 VTERM_VALUETYPE_BOOL = 1, 96 VTERM_VALUETYPE_BOOL = 1,