OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 2:45 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Solved] Terminal emulator CJK glitches
PostPosted: Wed Jun 30, 2021 1:16 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
I can't seem to find a terminal emulator program for Linux that deals with CJK input as it should. xterm can't display any at all. xfce4-terminal displays them ok, but refuses to take CJK characters as input. gnome-terminal doesn't even start on my system, for whatever reason. Other emulators (like kitty, tilda, terminator, etc.) display CJK text ok, accept input, but things get horribly messed up when you try to edit existing text.

Is there any terminal emulator that deals with CJK input as expected?


Last edited by pvc on Wed Jun 30, 2021 5:34 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Terminal emulator CJK glitches
PostPosted: Wed Jun 30, 2021 3:13 am 
Offline
Member
Member
User avatar

Joined: Thu Oct 13, 2016 4:55 pm
Posts: 1584
Yeah, xterm won't work for sure, you'll need uxterm to get UNICODE support. It's lightweight brother, urxvt is pretty damn good too. That's for the output.

As for the input, you'll also have to enable full 8-bit input in /etc/inputrc, and set up some locale that supports UTF-8 (for example "en_US.utf-8"), otherwise you won't be able to enter BMP code points, and you'll be limited to ASCII (it strongly depends on distro how it is configured by default). I don't know about kitty, tilda etc., but this has to be set up correctly for all terminals that depend on the readline library (like uxterm and urxvt, and probably xfce4-terminal too).

Cheers,
bzt


Top
 Profile  
 
 Post subject: Re: Terminal emulator CJK glitches
PostPosted: Wed Jun 30, 2021 5:34 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
Another PEBCAK :oops:
I was using default `C` locale. After setting it to `en_US.UTF-8` everything works as expected.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot], rdos and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group