vis icon indicating copy to clipboard operation
vis copied to clipboard

24bit true color not working

Open bzbug opened this issue 5 years ago • 2 comments

Terminal: st change-256colors option:

vis.events.subscribe(vis.events.INIT, function()
	vis:command('set change-256colors on')
end)

What I do

Set back:#501b2a color for vis.lexers.STYLE_TYPE, according to https://github.com/martanne/vis/issues/356#issuecomment-269948730:

A quick check is to use #501b2a as a background: it's a dark red that is interpreted as gray when converted to 256color.

What I get

Gray color.

Expected result

Dark red color.

bzbug avatar Aug 10 '20 00:08 bzbug

I'm unable to duplicate. vis v0.7 +curses +lua +acl st 0.8.4 I copied solarized.lua to test.lua, changed the background color to #501b2a, ran set theme test and the background was dark red.

mujo-hash avatar Feb 21 '21 09:02 mujo-hash

Minimal theme test case: local lexers = vis.lexers lexers.STYLE_DEFAULT = 'back:#501b2a'

Put it in ~/.config/vis/themes/test.lua and run :set theme test in vis. If the bg color is dark red, then colors are working correctly.

mujo-hash avatar Feb 21 '21 09:02 mujo-hash