solarized icon indicating copy to clipboard operation
solarized copied to clipboard

Suggest support for 24bit terminal emulators.

Open rdebath opened this issue 9 years ago • 0 comments

Personally I don't like an unmodified solarized palette for general use in a terminal with random programs. Many of them are configured for the Primary colours+Bold that terminals usually display.

OTOH: It's beautiful in vim.

So for the terminal I've mangled green & yellow to be a bit closer to the primary colours and generated some brighter versions for the Bold versions (Now random programs can use the normal colour pairs). But this really spoils VIM.

Presenting 24bit colour ... now it works.

let &t_AF="\e[38;%?%p1%{15}%>%t5;%p1%d%e2;%?%p1%{0}%=%t7;54;66%e%p1%{1}%=%t220;50;47%e%p1%{2}%=%t133;153;0%e%p1%{3}%=%t181;137;0%e%p1%{4}%=%t38;139;210%e%p1%{5}%=%t211;54;130%e%p1%{6}%=%t42;161;152%e%p1%{7}%=%t238;232;213%e%p1%{8}%=%t0;43;56%e%p1%{9}%=%t203;75;22%e%p1%{10}%=%t88;110;117%e%p1%{11}%=%t101;123;131%e%p1%{12}%=%t131;148;150%e%p1%{13}%=%t108;113;196%e%p1%{14}%=%t147;161;161%e%p1%{15}%=%t253;246;227%;%;m"
let &t_AB="\e[48;%?%p1%{15}%>%t5;%p1%d%e2;%?%p1%{0}%=%t7;54;66%e%p1%{1}%=%t220;50;47%e%p1%{2}%=%t133;153;0%e%p1%{3}%=%t181;137;0%e%p1%{4}%=%t38;139;210%e%p1%{5}%=%t211;54;130%e%p1%{6}%=%t42;161;152%e%p1%{7}%=%t238;232;213%e%p1%{8}%=%t0;43;56%e%p1%{9}%=%t203;75;22%e%p1%{10}%=%t88;110;117%e%p1%{11}%=%t101;123;131%e%p1%{12}%=%t131;148;150%e%p1%{13}%=%t108;113;196%e%p1%{14}%=%t147;161;161%e%p1%{15}%=%t253;246;227%;%;m"
let &t_op="\e[38;2;131;148;150;48;2;0;43;54m"
let &t_me="\e[;38;2;131;148;150;48;2;0;43;54m"
colorscheme solarized
syntax on

I need to add this to prevent the colours leaking onto the command prompt, because VIM has a nasty habit of printing t_me before t_ti. But otherwise it works perfectly.

let &t_ti = "\e[m\e[?1049h"
let &t_te = "\e[m\e[2J\e[?1049l"

It looks really weird when VIM is solarized but the command prompt is plain ANSI.

NB: My script for generating this and other stuff NB2: Vim may be getting native support for 24bit emulators re: set termguicolors PS: Correction 'termguicolors' appears in v7.4.1799 and several following fixes.

rdebath avatar Jun 26 '16 18:06 rdebath