Mercurial > vim
comparison src/libvterm/src/pen.c @ 12541:fcb11cfca8b3 v8.0.1149
patch 8.0.1149: libvterm colors differ from xterm
commit https://github.com/vim/vim/commit/a8fc0d3817f69b3599a1b56d74a2ddbd3139f40c
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 26 13:59:47 2017 +0200
patch 8.0.1149: libvterm colors differ from xterm
Problem: libvterm colors differ from xterm.
Solution: Use the xterm colors for libvterm.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 26 Sep 2017 14:00:06 +0200 |
parents | 1c0c6918926f |
children | c5bccd50100e |
comparison
equal
deleted
inserted
replaced
12540:88f468a0843f | 12541:fcb11cfca8b3 |
---|---|
23 { 64, 255, 255 }, /* cyan */ | 23 { 64, 255, 255 }, /* cyan */ |
24 { 255, 255, 255 }, /* white for real */ | 24 { 255, 255, 255 }, /* white for real */ |
25 }; | 25 }; |
26 | 26 |
27 static int ramp6[] = { | 27 static int ramp6[] = { |
28 0x00, 0x33, 0x66, 0x99, 0xCC, 0xFF, | 28 0x00, 0x5F, 0x87, 0xAF, 0xD7, 0xFF, |
29 }; | 29 }; |
30 | 30 |
31 /* Use 0x81 instead of 0x80 to be able to distinguish from ansi black */ | |
31 static int ramp24[] = { | 32 static int ramp24[] = { |
32 0x00, 0x0B, 0x16, 0x21, 0x2C, 0x37, 0x42, 0x4D, 0x58, 0x63, 0x6E, 0x79, | 33 0x08, 0x12, 0x1C, 0x26, 0x30, 0x3A, 0x44, 0x4E, 0x58, 0x62, 0x6C, 0x76, |
33 0x85, 0x90, 0x9B, 0xA6, 0xB1, 0xBC, 0xC7, 0xD2, 0xDD, 0xE8, 0xF3, 0xFF, | 34 0x81, 0x8A, 0x94, 0x9E, 0xA8, 0xB2, 0xBC, 0xC6, 0xD0, 0xDA, 0xE4, 0xEE, |
34 }; | 35 }; |
35 | 36 |
36 static int lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) | 37 static int lookup_colour_ansi(const VTermState *state, long index, VTermColor *col) |
37 { | 38 { |
38 if(index >= 0 && index < 16) { | 39 if(index >= 0 && index < 16) { |