|
From: | Thomas Dickey |
Subject: | Re: Unicode |
Date: | Tue, 24 Oct 2006 18:29:04 -0400 (EDT) |
On Tue, 24 Oct 2006, Christ, Bryan wrote:
Assuming that unicode is enabled, is there any reason I cannot just push a UTF-8 character to the screen with addch()?
yes - but: "a UTF-8 character" means to me a multibyte encoding for a Unicode character. Each call to addch() expects a byte with attributes.
On Tue, 2006-10-24 at 18:05 -0400, Thomas Dickey wrote:On Tue, 24 Oct 2006, Christ, Bryan wrote:What mechanism should be used to determine whether the current terminal has unicode enabled? In Fedora the user can start and stop unicode at anytime with unicode_start and unicode_stop.There's no mechanism (no defined escape sequence that tells if it is). Thomas Wolff has some library function for guessing if it is.
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |