comparison src/libvterm/src/vterm_internal.h @ 20500:03826c672315 v8.2.0804

patch 8.2.0804: libvterm code lags behind the upstream version Commit: https://github.com/vim/vim/commit/e5886ccb5163873dd01fc67b09ab10e681351ee9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 21 20:10:04 2020 +0200 patch 8.2.0804: libvterm code lags behind the upstream version Problem: Libvterm code lags behind the upstream version. Solution: Include revision 727, but add the index instead of switching between RGB and indexed.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 May 2020 20:15:04 +0200
parents 55a373a243c0
children a4652d7ec99f
comparison
equal deleted inserted replaced
20499:a7a490678633 20500:03826c672315
55 unsigned int reverse:1; 55 unsigned int reverse:1;
56 unsigned int conceal:1; 56 unsigned int conceal:1;
57 unsigned int strike:1; 57 unsigned int strike:1;
58 unsigned int font:4; // To store 0-9 58 unsigned int font:4; // To store 0-9
59 }; 59 };
60
61 int vterm_color_equal(VTermColor a, VTermColor b);
62
63 #if defined(DEFINE_INLINES) || USE_INLINE
64 INLINE int vterm_color_equal(VTermColor a, VTermColor b)
65 {
66 return a.red == b.red && a.green == b.green && a.blue == b.blue;
67 }
68 #endif
69 60
70 struct VTermState 61 struct VTermState
71 { 62 {
72 VTerm *vt; 63 VTerm *vt;
73 64
142 133
143 VTermColor default_fg; 134 VTermColor default_fg;
144 VTermColor default_bg; 135 VTermColor default_bg;
145 VTermColor colors[16]; // Store the 8 ANSI and the 8 ANSI high-brights only 136 VTermColor colors[16]; // Store the 8 ANSI and the 8 ANSI high-brights only
146 137
147 int fg_index;
148 int bg_index;
149 int bold_is_highbright; 138 int bold_is_highbright;
150 139
151 unsigned int protected_cell : 1; 140 unsigned int protected_cell : 1;
152 141
153 // Saved state under DEC mode 1048/1049 142 // Saved state under DEC mode 1048/1049