[Top][All Lists]

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

Querying terminal's ability to do unicode

From: Mike Gran
Subject: Querying terminal's ability to do unicode
Date: Wed, 27 Dec 2017 16:12:37 +0000 (UTC)


So I'm writing an application to which a client will connect by telnet.
It links ncursesw, and formw.

On connection, the application asks the user
"Enter terminal (or just hit return for xterm-256color)"

Once I get this terminal string from the user, how do I query the
terminfo to see if this user can get Unicode, or just G0/G1 Latin1,
or just ASCII?

There are some related properties: smacs, rmacs, set1_desc_seq,
but I don't know how to unpack that to answer my question.

Thanks in advance,

reply via email to

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