|
From: | Thomas Dickey |
Subject: | Re: extended ASCII characters do not show up |
Date: | Wed, 5 Oct 2005 06:34:43 -0400 (EDT) |
On Sun, 2 Oct 2005, Rajat Das wrote:
Hi, This is what I tried. I installed ncurses with the following configuration ./configure --with-shared --without-normal --without-debug --with-trace --enable-widec I then tried the following test program.
#include <locale.h>
#include <ncurses.h> int main() { WINDOW * win;
setlocale(LC_ALL, "");
initscr(); win = newwin(10,10,10,10); box(win,0,0); wrefresh(win); endwin(); } I did not use the _XOPEN_SOURCE_EXTENDED definition as I was not sure where exactly to define it. I compiled the program thus: gcc box.c -lncursesw I ran the program from a linux console. I got no output at all ie. no box on the screen. I then recompiled with the regular library thus:
With the changes noted above (and if $TERM is "linux"), you should see lines.
gcc box.c -lncurses This time I got a box with dashed lines(with + and - characters), something like +----+ | | +----+ "Faith is the bird that sings when the dawn is still dark." - Tagore
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |