[TAG] framebuffer colors or what is right with thomas adam?
Thomas Adam
thomas_adam16 at yahoo.com
Sat Mar 13 18:33:22 MSK 2004
--- "frank.n. dale" <frank.n.dale at eastcoast.co.za> wrote:
> Hello Answer Gang,
> Please do not forward this query to Thomas Adam, he
> does not know.
Unfortunately, I do.
> How do you set and get colors outside the range 0-F hex
> when using framebuffer in the Linux console?
For this, you will have to look at vga.c in the kernel source, and at
fb.c. You will almost certainly have to hack the kernel source to allow
this.
> The only solution found so far involves the SVGALib
> which is too much of an overhead. There must be a
> simpler solution. Do you know more than I do?
SVGALib is nothing to do with framebuffers, but it will allow you to
display console screen resolutions higher than the default.
> The query is relevant for syntax coloring in the Linux
> console (text, no X). With the standard 16 foreground
> and 8 background colors, syntax coloring is a pain in
> the eyes. With the 256 colors or more that you get from
> framebuffer, syntax coloring could become pleasant and
> effective.
So why not run your console with a setting of:
``
vga=0x317
''
while will run a 1024x786x256 colours.
Look here:
```
Colours 640x400 640x480 800x600 1024x768 1152x864 1280x1024 1600x1200
--------+--------------------------------------------------------------
4 bits | ? ? 0x302 ? ? ? ?
8 bits | 0x300 0x301 0x303 0x305 0x161 0x307 0x31C
15 bits | ? 0x310 0x313 0x316 0x162 0x319 0x31D
16 bits | ? 0x311 0x314 0x317 0x163 0x31A 0x31E
24 bits | ? 0x312 0x315 0x318 ? 0x31B 0x31F
32 bits | ? ? ? ? 0x164 ?
'''
(this is for: vga=<foo> in /etc/lilo.conf).
> So how do you set and get those colors outside the
> standard range?
(see above)
-- Thomas Adam
=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor" -- http://linuxgazette.net
"<shrug> We'll just save up your sins, Thomas, and punish
you for all of them at once when you get better. The
experience will probably kill you. :)"
-- Benjamin A. Okopnik (Linux Gazette Technical Editor)
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
More information about the TAG
mailing list