Solved vt color

I've been struggling for a long time with the default color palette of vt terminal especially in midnight commander. Today i had some free time to look at this and finally i manage to set up the default "dos" color palette from here:

The settings are:

/boot/loader.conf.local
Code:
kern.vt.color.0.rgb="0,0,0"
kern.vt.color.1.rgb="128,0,0"
kern.vt.color.2.rgb="0,128,0"
kern.vt.color.3.rgb="128,128,0"
kern.vt.color.4.rgb="0,0,128"
kern.vt.color.5.rgb="128,0,128"
kern.vt.color.6.rgb="0,128,128"
kern.vt.color.7.rgb="192,192,192"
kern.vt.color.8.rgb="128,128,128"
kern.vt.color.9.rgb="255,0,0"
kern.vt.color.10.rgb="0,255,0"
kern.vt.color.11.rgb="255,255,0"
kern.vt.color.12.rgb="0,0,255"
kern.vt.color.13.rgb="255,0,255"
kern.vt.color.14.rgb="0,255,255"
kern.vt.color.15.rgb="255,255,255"

credits:
 

Attachments

  • mc_colors_orig.png
    mc_colors_orig.png
    30.1 KB · Views: 356
  • mc_colors.png
    mc_colors.png
    31.5 KB · Views: 387
  • COLOR_palette_compare.png
    COLOR_palette_compare.png
    20.5 KB · Views: 359
Last edited:
Dear VladiBG :
thanks for your guide . how to configure my VT cursor to lightgreen ? thanks. i have read this content , but i can't find it . and try add below line in my .shrc
cursor_foreground_green=8
i am not sure is that right . please help me . thanks.
 
For misc/mc a new page is added to midnight commander site to customize colors, the page was joined few weeks ago, it was an independent github project, now part of official midnight commander site: Color schemes

In vt there are only 16 colors, in DE I use 256 colors. My color scheme in vt is:
Code:
kern.vt.color.0.rgb="#000000"         # Black
kern.vt.color.1.rgb="#C00000"         # Red
kern.vt.color.2.rgb="#00A000"         # Green
kern.vt.color.3.rgb="#FF8000"         # Yellow
kern.vt.color.4.rgb="#0040C0"         # Blue
kern.vt.color.5.rgb="#8060FF"         # Magenta
kern.vt.color.6.rgb="#00C0FF"         # Cyan
kern.vt.color.7.rgb="#C0C0C0"         # White
kern.vt.color.8.rgb="#808080"         # Light Black
kern.vt.color.9.rgb="#FF0000"         # Light Red
kern.vt.color.10.rgb="#00DC00"        # Light Green
kern.vt.color.11.rgb="#FFFF40"        # Light Yellow
kern.vt.color.12.rgb="#0080FF"        # Light Blue
kern.vt.color.13.rgb="#C080FF"        # Light Magenta
kern.vt.color.14.rgb="#80DCFF"        # Light Cyan
kern.vt.color.15.rgb="#FFFFFF"        # Light White

in editors (for syntax highlight) I use only 16 colors. I took color scheme from terminal.sexy:
Code:
Black                   0   0   0       `#000000`
Blue                    0   64  192     `#0040C0`
Green                   0   160 0       `#00A000`
Cyan                    0   192 255     `#00C0FF`
Red                     192 0   0       `#C00000`
Magenta                 128 96  255     `#8060FF`
Yellow                  255 128 0       `#FF8000`
White                   192 192 192     `#C0C0C0`
Light Black             128 128 128     `#808080`
Light Blue              0   128 255     `#0080FF`
Light Green             0   220 0       `#00DC00`
Light Cyan              128 220 255     `#80DCFF`
Light Red               255 0   0       `#FF0000`
Light Magenta           192 128 255     `#C080FF`
Light Yellow            255 255 64      `#FFFF40`
Light White             255 255 255     `#FFFFFF`
 
Back
Top