WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to display Chinese in xterm or aterm  (Read 277 times)

Offline bobowsh

  • Newbie
  • *
  • Posts: 4
How to display Chinese in xterm or aterm
« on: December 14, 2024, 09:23:17 AM »
I tried to config like this below, but it does'nt work,
Aterm*scrollBar: true
Aterm*transparent: true
Aterm*title: Terminal
Aterm*foreground: white
Aterm*background: black
Aterm*font: WenQuanYi Zen Hei
Aterm*cursorColor: green
Aterm*fading: 70
Aterm*shading: 50
Aterm*color12: DodgerBlue1
Aterm*saveLines: 1000
fltk*scheme: gtk+
Xft.dpi: 96.0

! English font
! xterm*faceName: DejaVu Sans Mono:antialias=True:pixelsize=13
! Chinese font
Aterm*faceNameDoublesize:WenQuanYi Zen Hei:antialias=True:pixelsize=13

Aterm*faceName: WenQuanYi Zen Hei
Aterm*faceSize: 12

Aterm*locale:true
Aterm.utf8: true

 !font and locale
 xterm*locale: true
 xterm.utf8:     true
 xterm*utf8Title: true
 xterm*fontMenu*fontdefault*Label: Default
 xterm*faceName:WenQuanYi Zen Hei:antialias=True:pixelsize=16
 !xterm*faceName: monofur:antialias=True:pixelsize=20
 xter*boldFont: WenQuanYi Zen Hei Mono:style=Bold:pixelsize=15
 xterm*faceNameDoublesize:WenQuanYi Zen Hei:antialias=True:pixelsize=15
 xterm*xftAntialias: true
 xterm.cjkWidth:true
 XTerm*preeditType: Root

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: How to display Chinese in xterm or aterm
« Reply #1 on: December 14, 2024, 09:49:48 AM »
Hi, bobowsh.

Use a different terminal, aterm doesn't support UTF-8

Which port are you using ?

Try rxvt, vte, lxterminal, genome-terminal ... etc.

You'll also need True Type Fonts such as unifont, notosans ... etc.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: How to display Chinese in xterm or aterm
« Reply #2 on: December 14, 2024, 10:28:28 AM »
Hi polikuo
... Try rxvt, vte, lxterminal, genome-terminal ... etc. ...
Did you mean  gnome-terminal ?

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: How to display Chinese in xterm or aterm
« Reply #3 on: December 14, 2024, 10:41:01 AM »
Ha~, ha~
Nice catch
Yes, I mean gnome-terminal
This isn't molecular biology.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: How to display Chinese in xterm or aterm
« Reply #4 on: December 14, 2024, 10:53:23 AM »
Hi polikuo
... This isn't molecular biology.
True, but not everyone who reads that post in the future
may be aware of gnome.

I've been on a few wild goose chases because someone
looking for help misspelled an item I was not familiar with.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: How to display Chinese in xterm or aterm
« Reply #5 on: December 14, 2024, 11:04:50 AM »
True, but not everyone who reads that post in the future
may be aware of gnome.
A future in which a person would be aware of TCL (at least enough to be reading this thread) and unaware of gnome? I love it. Sounds like my kind of future :)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: How to display Chinese in xterm or aterm
« Reply #6 on: December 14, 2024, 01:06:51 PM »
Hi GNUser
... a person would be aware of TCL (at least enough to be reading this thread) and unaware of gnome? ...
Then I guess you've never seen any posts resembling this:
Quote
I'm trying to install Tinycore but I'm having some problems. I'm coming from
Windows and want to turn an old machine into a jukebox.
Or:
Quote
Noobie here...........first post. Trying to become more comfortable using Linux, but still at a rudimentary level of understanding.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: How to display Chinese in xterm or aterm
« Reply #7 on: December 14, 2024, 03:54:30 PM »
Hi Rich. I guess some people take a lot less time to see the light than I did. I wish I were like the newbies in these posts! Finding TCL sooner in my FOSS journey would have saved me a lot of time and aggravation.