[SOLVED] Some characters not displaying properly in Terminal
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Some characters not displaying properly in Terminal
Every once in a while I need to display some 'umlauts'. I have no problem, when running X and using an xterm. However, when I am not running a Desktop environment the umlauts do not display properly. I have tried setting different locales, e.g.,
but none of them worked. Additionally, whenever I use a UTF-8 locale, midnight commander also displays garbage on its margins. Is there a way to solve this issue when running a terminal without X?
return? Available fonts are in /usr/share/kbd/consolefonts/ ; linux loads default
Code:
/etc/rc.d/rc.font
sets the font also.
The output is
Code:
Loading 256-char 8x16 font from file /usr/share/kbd/consolefonts/default8x16.psfu.gz
Loading Unicode mapping table...
@didier:
I have tried all of it without success. Not sure if this is relevant, but after I issued 'loadkeys de' I was not able to type umlauts. The characters that were printed instead were '[' and ']'.
I don't know what is your keyboard mapping. Can you type directly the umlaut vowels (with a single key) and which ones exactly do you want to type?
To know which glyphs are available in the font currently in use, just type:
Code:
showconsolefont
This is the output of 'showconsolefont'
Code:
! " # $ % & ' ( ) * + , - . / 0
1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z [ \ ] ^ _ `
! " # $ % & ' ( ) * + , - . / 0
1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z [ \ ] ^ _ `
! " # $ % & ' ( ) * + , - . / 0
1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z [ \ ] ^ _ `
! " # $ % & ' ( ) * + , - . / 0
1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z [ \ ] ^ _ `
Just to be clear: I do not mind that I am not able to type umlauts. As I stated earlier, I just need to display some every now and then, usually when I receive a file that has them in its name. I simply mentioned that I cannot type them just in case it may provide some further insight on what the underlying problem might be.
! " # $ % & ' ( ) * + , - . / 0
1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z [ \ ] ^ _ `
! " # $ % & ' ( ) * + , - . / 0
1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z [ \ ] ^ _ `
! " # $ % & ' ( ) * + , - . / 0
1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z [ \ ] ^ _ `
! " # $ % & ' ( ) * + , - . / 0
1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P
Q R S T U V W X Y Z [ \ ] ^ _ `
Using which font? This not what I get, neither with default8x16 nor with ter-16b.
I don't see even lower case letters, which is rather weird.
Last edited by Didier Spaier; 04-15-2018 at 05:05 PM.
This is the output of 'showconsolefont' after I redirect it into a file. I just noticed that the output on the console itself is different. However, in order to copy paste it I have to redirect it to a file, since I cannot reproduce the errors in a GUI environment. Well, I guess I am stuck with this bug. Thanks anyway.
Your high-bit-set characters are duplicates of your low-bit characters. You need a new font. Go to /usr/share/kbd/consolefonts and try some of the lat* , probably the high ones, such as 15 or 16. Run
Code:
setfont [fontname]
then
Code:
showconsolefont
and look for diacritically-marked characters in the high-bit characters. You can rename the default character set to something else then link the character set you like to the default name.
However I don't get the same glyphs as typing showconsoelfont directly in a VT (and I don't get the umlaut vowels, by the way). Does screen sets a specific font?
Sorry for the newbie question, I never started screen until today.
Last edited by Didier Spaier; 04-16-2018 at 08:56 AM.
However I don't get the same glyphs as typing showconsoelfont directly in a VT (and I don't get the umlaut vowels, by the way). Does screen sets a specific font?
Sorry for the newbie question, I never started screen until today.
Well, that's interesting! Same problem here! I don't think screen sets its own font; I moved back to screen from tmux because it seems better behaved. It must have something to do with $TERM ; on the console, it's linux, and in screen (running on the console), at least here, it's screen-256color
But even on the linux console I don't get the glyphs I was expecting (with ter-v16b).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.