Background color Framebuffer console

3 messages, 2 authors, 2008-08-21 · open the first message on its own page

Background color Framebuffer console

From: Amol Lad <hidden>
Date: 2008-08-21 10:34:57

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=/

Re: Background color Framebuffer console

From: Anatolij Gustschin <agust@denx.de>
Date: 2008-08-21 12:12:35

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=/

Re: Background color Framebuffer console

From: Anatolij Gustschin <agust@denx.de>
Date: 2008-08-21 12:21:49

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=/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help