Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unicode/UTF-8 in the Linux (framebuffer) console?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Leffe
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 145
Location: Sweden

PostPosted: Tue Dec 07, 2004 8:09 pm    Post subject: Unicode/UTF-8 in the Linux (framebuffer) console? Reply with quote

First of all, I want UTF-8 in the Linux console :)

If I remember correctly, there is a limit on the characters avaible in the Linux console, 400 or maybe 256, I think that was is kernel limitation.

Are there any workarounds or something? And what about the framebuffer, I'd imagine the solution would be a bit easier if you could use the power of the framebuffer.

And how does X do it? Through it's terminal emulators? How comes normal terminals can't do it... or can they :)?

Hm, enough questions for now.
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Wed Dec 08, 2004 2:13 am    Post subject: Reply with quote

Quote:
If I remember correctly, there is a limit on the characters avaible in the Linux console

EDIT: 256
Code:
    vc->vc_font.charcount = 256; /* FIXME  Need to support more fonts */

from /usr/src/linux/drivers/video/console/fbcon.c line 620
Quote:
Are there any workarounds or something?

Nope, this a hardware limit of the framebuffer text implementation, I think.
Quote:
And how does X do it? Through it's terminal emulators?

Yes - how else?
Quote:
How comes normal terminals can't do it... or can they Smile?

Short answer: "Normal" terminals expect 1 byte=1 character, which isnt the case with UTF-8.
http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8
Back to top
View user's profile Send private message
Leffe
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 145
Location: Sweden

PostPosted: Wed Dec 08, 2004 12:24 pm    Post subject: Reply with quote

bmichaelsen wrote:
Quote:
If I remember correctly, there is a limit on the characters avaible in the Linux console

EDIT: 256
Code:
    vc->vc_font.charcount = 256; /* FIXME  Need to support more fonts */

from /usr/src/linux/drivers/video/console/fbcon.c line 620
Quote:
Are there any workarounds or something?

Nope, this a hardware limit of the framebuffer text implementation, I think.


I checked it up, and VGA has a 512 character limitation :/

http://tldp.org/HOWTO/Unicode-HOWTO-2.html#ss2.1

Quote:
Quote:
And how does X do it? Through it's terminal emulators?

Yes - how else?
Quote:
How comes normal terminals can't do it... or can they Smile?

Short answer: "Normal" terminals expect 1 byte=1 character, which isnt the case with UTF-8.
http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8


Thank you!

I noticed there were a few fb-enhanced programs in app-i18n other than fbiterm, which I never got working, that could work... but they all need fonts from X or won't compile/work :) I think I'm going to install some kind of X11 implementation though.
Back to top
View user's profile Send private message
Leffe
Tux's lil' helper
Tux's lil' helper


Joined: 07 Apr 2004
Posts: 145
Location: Sweden

PostPosted: Mon Dec 13, 2004 10:57 pm    Post subject: Reply with quote

app-i18n/jfbterm handles unicode great!! As long as you have an unicode font like media-fonts/unifont or what it could be called :)

One issue though, less didn't like 'en_US.utf8', it wanted 'en_US.UTF-8' instead to display unicode... I should patch it.

Also, is there some browser other than w3m that handles unicode nicely, preferably without any configuring at all :) I haven't been able to get anything out of links (the links you get when you emerge links), maybe some other version has it? And how about lynx, ... Never mind, it was easy to enable it there... I like Links still though. What versions are in portage anyway?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum