[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NCurses double-byte enablement
From: |
Thomas Dickey |
Subject: |
Re: NCurses double-byte enablement |
Date: |
Thu, 14 Dec 2000 05:24:53 -0500 |
User-agent: |
Mutt/1.2.5i |
On Thu, Dec 14, 2000 at 01:16:01PM +0800, Sean Lee wrote:
> Hello,
>
> Can somebody tell me how much effort would it take to double-byte enable
> NCurses?
there's more than one aspect. I did the easy part a while ago, it's in 5.1:
storing 16-bits to use in UTF-8. (I should add this to my FAQ). If configured
with --enable-wide-chars, it builds a libncursesw rather than libncurses, which
(is not binary-compatible with libncurses) can store/display UTF-8.
But the functions in the X/Open for multibyte support are not implemented -
that would require making a distinction which is not present in the current
code between chtype and attr_t, i.e., implementing cchar_t (a struct).
I'm guessing that it would take a month's concentrated effort to implement the
basic support for multibyte characters.
--
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com