On Wed, 22 Aug 2012, Tobias Boege wrote:
> On Wed, 22 Aug 2012, Beno?t Minisini wrote:
> > Le 22/08/2012 15:10, Tobias Boege a ?crit :
> > > On Tue, 21 Aug 2012, William Cabrera wrote:
> > >> Hi, when i print a text using print or printcenter function, the 
> > >> non-ASCII
> > >> characters are not displayed correctly.
> > >>
> > >> For example, when i run
> > >>
> > >> $hWin.Printcenter("??, ??, ??, ??, ??, ??, ??")
> > >>
> > >> The output is
> > >>
> > >> M-CM-!, M-CM-), M-CM-, M-CM-3, M-CM:, M-CM-1, M-CM-<
> > >>
> > >
> > > Hi William,
> > >
> > > ncurses is not aware of wide characters and the ones you tried to print 
> > > look
> > > very wide. However, there is ncursesw which can do such things - according
> > > to the manpage. It would theoretically not be a problem to change to
> > > ncursesw but CDK, an ncurses widget libary, which I will use to implement
> > > controls is, in turn, incompatible with ncursesw...
> > > I'm sorry, apart from writing all controls myself, I couldn't do anything
> > > which means: I cannot do anything. But we can hope for CDK to become
> > > ncursesw-compatible which is a declared and urgent goal of the 
> > > developer...
> > >
> > > Regards,
> > > Tobi
> > >
> > 
> > If your terminal is UTF-8, and if you send the Gambas UTF-8 characters 
> > to ncurses, should'nt they be displayed correctly?
> > 
> > -- 
> > Beno?t Minisini
> > 
> 
> I never needed my terminal to be UTF-8 but now the need seems have come
> up... ncurses can handle up to 8 bits per character so UTF-8 is going to
> display humbug.

... or maybe not? The library uses some integer to store its 8-bit
characters together with character attributes and stuff. If the terminal can
assemble that together... Maybe you're right. I will anyway try it later.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to