bug-ncurses
[Top][All Lists]
Advanced

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

Unicode and using alternate characters


From: Christ, Bryan
Subject: Unicode and using alternate characters
Date: Mon, 26 Jun 2006 10:53:01 -0500

This posting is a response to the person asking about how to "detect"
whether or not they can print alt characters (unicode on/off).  Sorry, I
don't have the original posting.

As Thomas stated, setlocale() does require a bit of trust.  I'm using
getenv("TERM") to check for "xterm".  If it's not xterm, I won't show
alt char.  Obviously, I'm missing out on some instances where the alt
char *could* be displayed but I prefer the "better safe than sorry"
approach.  Even with this approach assumes that TERM is set correctly.

Bryan




reply via email to

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