Question : How to create menu with Background color

Hi
i am looking for a tutorial where it will show , how to create menu with different background color.
please have a look the picture.

I am trying to do this on console, not gui(i.e Tk)

Thanks
Attachments:
 
 

Answer : How to create menu with Background color

use Curses;

That's for a start.

Next, realise that ncurses (the normal curses library on most modern systems) does not automagically paint the whole background of a terminal.  It only paints the background where it's told to explicitly draw.

Essentially, if you want a full-screen background, you need to paint over the entire screen with the desired colour, then overlay your other text/colours on top of that.

You may also be able to use panels.  Panel support is quite often disabled by default, so it may require a recompile of ncurses -and- then a recompile of the perl Curses module with panels disabled.
Random Solutions  
 
programming4us programming4us