Hello All Gr8 Linux Developers Out There,
Background
I have created a ncurses application that is suppose to run only on the Linux's virtual console. This application will heavily utilize the ncurses windows to show window-based UI to the user. I am using CentOS5.x. The terminal for the virtual console is set to (TERM=linux).
I used the following code sequence to initialize the ncurses environment
initscr();
getmaxyx(stdscr,y,x);
noecho();
cbreak();
start_color();
init_color(3,700,700,700);
clear();
wclear(stdscr);
The Issue
Currently I am unable to render solid borders in my windows. Ncurses produces solid borders for the windows using extended ASCII characters. Since I am unable to make ncurses to use extended characters, I assume I must have missing some setting in my code (may be using termios API). Currently I am fully rely on the ncurses to setup my virtual console to render solid borders. I have also tried my applications on other platform such as Fedora Core 10, and again it fails to render solid borders. However, when I run it on any pseudo terminal (using PuTTY) where TERM=xterm, it clearly renders the solid borders as I like. So I presume that there is something with the terminal type and/or driver.
Question
Kindly state what should I do to enable extended character support on my virtual terminal(console) so that ncurses can render solid borders for my windows. Or if there is any code that I should add to my application that will enables my virtual terminal (/dev/tty1) to show extended characters letting nucurses to draw solid borders.
Thanks
Kashif Ali Siddiqui
Another Linux Developer striving to become a gr8 developer