From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Subject: Re: Background color Framebuffer console Date: Thu, 21 Aug 2008 14:12:20 +0200 Message-ID: <48AD5BA4.3050009@denx.de> References: <8c675e9b0808210334q7871e06cnb926c7df0fe2055c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1KW91n-00041x-U5 for linux-fbdev-devel@lists.sourceforge.net; Thu, 21 Aug 2008 05:12:35 -0700 Received: from mail-out.m-online.net ([212.18.0.9]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1KW91m-0003C1-Eq for linux-fbdev-devel@lists.sourceforge.net; Thu, 21 Aug 2008 05:12:35 -0700 In-Reply-To: <8c675e9b0808210334q7871e06cnb926c7df0fe2055c@mail.gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Amol Lad Cc: linux-fbdev-devel@lists.sourceforge.net 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=/