patch 8.2.0582: color ramp test does not show text colors
Problem: Color ramp test does not show text colors. Solution: Add a row of 16 text colors and 16 bold text colors.
This commit is contained in:
@ -1,9 +1,15 @@
|
|||||||
" Script to generate a file that shows al 256 xterm colors
|
" Script to generate a file that shows al 256 xterm colors
|
||||||
|
|
||||||
new
|
new
|
||||||
call setline(1, 'ANSI')
|
let lnum = 1
|
||||||
|
|
||||||
|
" | in original color pair to see white background.
|
||||||
|
let trail_bar = "\033[m|"
|
||||||
|
|
||||||
" ANSI colors
|
" ANSI colors
|
||||||
|
call setline(lnum, 'ANSI background')
|
||||||
|
let lnum += 1
|
||||||
|
|
||||||
let s = ''
|
let s = ''
|
||||||
for nr in range(0, 7)
|
for nr in range(0, 7)
|
||||||
let s .= "\033[4" . nr . "m "
|
let s .= "\033[4" . nr . "m "
|
||||||
@ -11,30 +17,68 @@ endfor
|
|||||||
for nr in range(8, 15)
|
for nr in range(8, 15)
|
||||||
let s .= "\033[10" . (nr - 8) . "m "
|
let s .= "\033[10" . (nr - 8) . "m "
|
||||||
endfor
|
endfor
|
||||||
" Add | in original color pair to see white background.
|
let s .= trail_bar
|
||||||
let s .= "\033[m|"
|
|
||||||
call setline(2, s)
|
call setline(lnum, s)
|
||||||
|
let lnum += 1
|
||||||
|
|
||||||
|
" ANSI text colors
|
||||||
|
call setline(lnum, 'ANSI text')
|
||||||
|
let lnum += 1
|
||||||
|
|
||||||
|
let s = ''
|
||||||
|
for nr in range(0, 7)
|
||||||
|
let s .= "\033[0;3" . nr . "mxxxx"
|
||||||
|
endfor
|
||||||
|
for nr in range(8, 15)
|
||||||
|
let s .= "\033[0;9" . (nr - 8) . "mxxxx"
|
||||||
|
endfor
|
||||||
|
let s .= trail_bar
|
||||||
|
|
||||||
|
call setline(lnum, s)
|
||||||
|
let lnum += 1
|
||||||
|
|
||||||
|
" ANSI with bold text
|
||||||
|
call setline(lnum, 'ANSI bold text')
|
||||||
|
let lnum += 1
|
||||||
|
|
||||||
|
let s = ''
|
||||||
|
for nr in range(0, 7)
|
||||||
|
let s .= "\033[1;3" . nr . "mxxxx"
|
||||||
|
endfor
|
||||||
|
for nr in range(8, 15)
|
||||||
|
let s .= "\033[1;9" . (nr - 8) . "mxxxx"
|
||||||
|
endfor
|
||||||
|
let s .= trail_bar
|
||||||
|
|
||||||
|
call setline(lnum, s)
|
||||||
|
let lnum += 1
|
||||||
|
|
||||||
" 6 x 6 x 6 color cube
|
" 6 x 6 x 6 color cube
|
||||||
call setline(3, 'color cube')
|
call setline(lnum, 'color cube')
|
||||||
|
let lnum += 1
|
||||||
|
|
||||||
for high in range(0, 5)
|
for high in range(0, 5)
|
||||||
let s = ''
|
let s = ''
|
||||||
for low in range(0, 35)
|
for low in range(0, 35)
|
||||||
let nr = low + high * 36
|
let nr = low + high * 36
|
||||||
let s .= "\033[48;5;" . (nr + 16) . "m "
|
let s .= "\033[48;5;" . (nr + 16) . "m "
|
||||||
endfor
|
endfor
|
||||||
let s .= "\033[m|"
|
let s .= trail_bar
|
||||||
call setline(high + 4, s)
|
call setline(lnum + high, s)
|
||||||
endfor
|
endfor
|
||||||
|
let lnum += 6
|
||||||
|
|
||||||
" 24 shades of grey
|
" 24 shades of grey
|
||||||
call setline(10, 'grey ramp')
|
call setline(lnum, 'grey ramp')
|
||||||
|
let lnum += 1
|
||||||
|
|
||||||
let s = ''
|
let s = ''
|
||||||
for nr in range(0, 23)
|
for nr in range(0, 23)
|
||||||
let s .= "\033[48;5;" . (nr + 232) . "m "
|
let s .= "\033[48;5;" . (nr + 232) . "m "
|
||||||
endfor
|
endfor
|
||||||
let s .= "\033[m|"
|
let s .= trail_bar
|
||||||
call setline(11, s)
|
call setline(lnum, s)
|
||||||
|
|
||||||
set binary
|
set binary
|
||||||
write! <sfile>:h/color_ramp.txt
|
write! <sfile>:h/color_ramp.txt
|
||||||
|
|||||||
@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
582,
|
||||||
/**/
|
/**/
|
||||||
581,
|
581,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user