* Background color Framebuffer console
@ 2008-08-21 10:34 Amol Lad
2008-08-21 12:12 ` Anatolij Gustschin
0 siblings, 1 reply; 3+ messages in thread
From: Amol Lad @ 2008-08-21 10:34 UTC (permalink / raw)
To: linux-fbdev-devel
Hi,
After enabling console on framebuffer, the background color is "blue"
. How can I change this color (to say black) ? Is this color specified
by vc->vc_video_erase_char ?
Thanks
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Background color Framebuffer console
2008-08-21 10:34 Background color Framebuffer console Amol Lad
@ 2008-08-21 12:12 ` Anatolij Gustschin
2008-08-21 12:21 ` Anatolij Gustschin
0 siblings, 1 reply; 3+ messages in thread
From: Anatolij Gustschin @ 2008-08-21 12:12 UTC (permalink / raw)
To: Amol Lad; +Cc: linux-fbdev-devel
Amol Lad wrote:
> After enabling console on framebuffer, the background color is "blue"
background color should be "black" by default. What is the endianness
of your host CPU and of the frame buffer?
> . How can I change this color (to say black) ? Is this color specified
> by vc->vc_video_erase_char ?
To set black background try
# echo -e "\033[40m" > /dev/tty0
You could also try to set other bg colors and see what happens:
# for ((i = 40; i < 51; i++)) do echo -e "\033[${i}m > /dev/tty0"; done
No, it is not specified by vc->vc_video_erase_char but by upper nibble
of vc->vc_color, IIRC.
Best Regards,
Anatolij
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Background color Framebuffer console
2008-08-21 12:12 ` Anatolij Gustschin
@ 2008-08-21 12:21 ` Anatolij Gustschin
0 siblings, 0 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2008-08-21 12:21 UTC (permalink / raw)
To: Amol Lad; +Cc: linux-fbdev-devel
Anatolij Gustschin wrote:
<snip>
> You could also try to set other bg colors and see what happens:
>
> # for ((i = 40; i < 51; i++)) do echo -e "\033[${i}m > /dev/tty0"; done
The above command should be
# for ((i = 40; i < 51; i++)) do echo -e "\033[${i}m" > /dev/tty0; done
Sorry, my typo.
Best Regards,
Anatolij
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-21 12:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 10:34 Background color Framebuffer console Amol Lad
2008-08-21 12:12 ` Anatolij Gustschin
2008-08-21 12:21 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).