bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extended ASCII characters do not show up


From: Rajat Das
Subject: Re: extended ASCII characters do not show up
Date: Wed, 5 Oct 2005 05:41:20 -0700 (PDT)

Yes! :-) This time I got it. Thank you so much!

Rajat

--- Thomas Dickey <address@hidden> wrote:

> 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
> 


"Faith is the bird that sings when the dawn is still dark." - Tagore




reply via email to

[Prev in Thread] Current Thread [Next in Thread]