![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Final Cut Pro: Green frames or other anomalies on render with REDCODE | iBot | OS X Support RSS | 0 | 04-26-2009 03:30 AM |
| Tables and borders | amatuer_lee_3 | Shell Programming and Scripting | 9 | 03-10-2009 10:18 PM |
| Mac OS X: Based on UNIX - Solid As a Rock | Neo | OS X (Apple) | 0 | 11-12-2005 05:38 PM |
| batch render | Vitor | UNIX for Dummies Questions & Answers | 1 | 07-11-2002 01:53 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to render solid borders in NCURSES windows
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 Code:
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 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|