Mailing List Archive

Support open source code!


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

tlug: ncurses and kterm and japanese characters



>>>>> "Fredric" == Fredric Fredricson <Fredric.Fredriksson@example.com> writes:

    Fredric> I am browsing all documentation I can find but not a word
    Fredric> about switching character sets or fonts or anything.

Put the kterm into ISO-2022 mode.  I don't know how you can do this
from ncurses, but I'm pretty sure kterm supports some kind of
mode-changing escape sequences.

To get Japanese, spit ESC $ B, then JIS codes ("#1#2#3" is a favorite
of mine, giving full-width digits), then ESC ( B at the kterm, however
you do that in ncurses.  I don't see why it would be any different
from an ASCII string.

In Shift-JIS or EUC mode, you just need to use the right character
codes.  kterm handles all the rest (the fonts and so on).  The
advantage of ISO-2022 mode is that you can use Latin-1 characters, but 
you have to use the ISO-2022 character set designation sequences.

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
__________________________________________________________________________
__________________________________________________________________________
What are those two straight lines for?  "Free software rules."
-------------------------------------------------------------------
Next Technical Meeting: June 19 (Sat), 18:30  place: Temple Univ.
*** Topic: Linux SMP/Quad Xeon Server
Next Nomikai: July 16 (Fri), 19:30 Tengu TokyoEkiMae 03-3275-3691
-------------------------------------------------------------------
more info: http://www.tlug.gr.jp        Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links