summaryrefslogtreecommitdiff
path: root/src/libvterm
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-26 13:59:47 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-26 13:59:47 +0200
commita8fc0d3817f69b3599a1b56d74a2ddbd3139f40c (patch)
tree0d655b66a36a575c7e48316c794e45bc4e20db7a /src/libvterm
parent22ab547dc281092d6a9d397db712a11733c38e97 (diff)
downloadvim-git-a8fc0d3817f69b3599a1b56d74a2ddbd3139f40c.tar.gz
patch 8.0.1149: libvterm colors differ from xtermv8.0.1149
Problem: libvterm colors differ from xterm. Solution: Use the xterm colors for libvterm.
Diffstat (limited to 'src/libvterm')
-rw-r--r--src/libvterm/src/pen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libvterm/src/pen.c b/src/libvterm/src/pen.c
index fd604334f..c533096a4 100644
--- a/src/libvterm/src/pen.c
+++ b/src/libvterm/src/pen.c
@@ -25,12 +25,13 @@ static const VTermColor ansi_colors[] = {
};
static int ramp6[] = {
- 0x00, 0x33, 0x66, 0x99, 0xCC, 0xFF,
+ 0x00, 0x5F, 0x87, 0xAF, 0xD7, 0xFF,
};
+/* Use 0x81 instead of 0x80 to be able to distinguish from ansi black */
static int ramp24[] = {
- 0x00, 0x0B, 0x16, 0x21, 0x2C, 0x37, 0x42, 0x4D, 0x58, 0x63, 0x6E, 0x79,
- 0x85, 0x90, 0x9B, 0xA6, 0xB1, 0xBC, 0xC7, 0xD2, 0xDD, 0xE8, 0xF3, 0xFF,
+ 0x08, 0x12, 0x1C, 0x26, 0x30, 0x3A, 0x44, 0x4E, 0x58, 0x62, 0x6C, 0x76,
+ 0x81, 0x8A, 0x94, 0x9E, 0xA8, 0xB2, 0xBC, 0xC6, 0xD0, 0xDA, 0xE4, 0xEE,
};
static int lookup_colour_ansi(const VTermState *state, long index, VTermColor *col)