Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Unicode and Midnight Commander

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
sirlark
Guru
Guru
User avatar
Posts: 344
Joined: Mon Oct 25, 2004 11:41 am
Location: Limerick, Ireland

Unicode and Midnight Commander

  • Quote

Post by sirlark » Mon Jul 10, 2006 2:36 pm

Hi,

I would like to set up my console to use unicode, and can do so with ease, however I have noticed that when using unicode, programs like midnight commander and the kernels menconfig option (that is ncurses apps I guess) don't display correctly, as the borders of dialogs and frames etc... do not display using the right characters. In some cases this even affects the layout of things within the frames (esp in mc). I assume this is a font problem, although I have chosen a unicode font for the console, but I am not sure. Is it perhaps that ncurses isn't unicode aware???

Any ideas how to solve this?

Thanks
James
Last edited by sirlark on Thu Oct 26, 2006 10:20 pm, edited 1 time in total.
Adopt an unanswered post today
Top
i92guboj
Bodhisattva
Bodhisattva
User avatar
Posts: 10315
Joined: Tue Nov 30, 2004 8:17 pm
Location: Córdoba (Spain)

  • Quote

Post by i92guboj » Mon Jul 10, 2006 5:18 pm

For mc, just compile it with slang instead of ncurses, and you will be fine.

Code: Select all

USE="slang -ncurses" emerge mc
And, if you really plan to use MC, you might also like to know this, also related to the slang vs. ncurses thingie:
http://forums.gentoo.org/viewtopic-t-40 ... ander.html

It could save you a lot of troubles.
Top
sirlark
Guru
Guru
User avatar
Posts: 344
Joined: Mon Oct 25, 2004 11:41 am
Location: Limerick, Ireland

  • Quote

Post by sirlark » Fri Jul 14, 2006 11:22 am

Nope, that doesn't seem to be it... It seems to be an xterm font "problem" i.e. the default font looks screwy, but I've found one that works...

But thanks for the headsup on slang! I've recompiled!
Adopt an unanswered post today
Top
aries
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon May 03, 2004 4:52 pm
Location: Sliedrecht the Netherlands

  • Quote

Post by aries » Thu Oct 26, 2006 8:40 pm

Hello Sirlark,

How did you exactly sole this problem? Just by changing the default font only/

I have the same problem as you:
- midnight commander as root is OK
- mc as user gives A´s and 3´s as border
Top
sirlark
Guru
Guru
User avatar
Posts: 344
Joined: Mon Oct 25, 2004 11:41 am
Location: Limerick, Ireland

  • Quote

Post by sirlark » Thu Oct 26, 2006 10:46 pm

Hi, I'm sorry ...

I DIDN'T solve the problem. It turns out my problem was not in fact a unicode issue. My problem was that even without unicode being started, when running any ncurses app with borders n an xterm, things looked screwy! I solved it choosing an appropriate font, namely ...

-*-neep-medium-r-*-*-11-*

which is not a standard font AFAIK... in fact I don't know where I even found it. I have recently tried to get unicode working again, but with the same problem as you, except that instead of displaying odd chracters instead of 'borders' nothing is displayed at all, so nothing in fact that where a border should be, the entire rest of the line is shifted one character to the left, leaving black space n the end for each unprinted character. This happens regardless of the fonts I choose from /usr/share/consolefonts

Sorry again, but good luck in finding a solution, I've been trying now for almost 18 months on and off.
Adopt an unanswered post today
Top
aries
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon May 03, 2004 4:52 pm
Location: Sliedrecht the Netherlands

  • Quote

Post by aries » Sat Oct 28, 2006 7:02 pm

Thanks,

Do you have the problems with mc in all terminal emulation modes?

I have the kde terminal applet added to the panel and when I run the KDE terminal emulator as:
1. normal user midnight commander : no problem
2. normal user ´shell´ and run mc : no problem
3. normal user ´linux console´ and run mc : no borders but odd characters
4. root midnight commander: no problem
5. root ´linux console´: no problem

Log in in the bash shell (no kde)
6. midnigth commander: no borders but odd characters.

Don´t know yet why problems only happen for point 3 and 6.
Updating /etc/locale.gen and doing "locale-gen¨ did not help.
Top
sirlark
Guru
Guru
User avatar
Posts: 344
Joined: Mon Oct 25, 2004 11:41 am
Location: Limerick, Ireland

  • Quote

Post by sirlark » Sat Oct 28, 2006 9:32 pm

Hi, use a very bare bones setup, blackbox and xterm ...

How do I go about changing terminal emulations, as I would really like to test the six cases you have outlined?
Adopt an unanswered post today
Top
aries
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon May 03, 2004 4:52 pm
Location: Sliedrecht the Netherlands

  • Quote

Post by aries » Mon Oct 30, 2006 8:50 pm

I am afraid our problems are not solved yet :(

The terminal emulation uses:
1: xterm
2: xterm
3. konsole
4: xterm
5: xterm

Details konsole: By default unicode is disabled in the konsole for me.
I tried in the konsole to enable and disable unicode and to use mc:
A. echo -n -e '\033%G'
=> enable unicode
=> mc with strange borderlines and also NOT correctly aligned
=> kernel ´make menuconfig´ NOT correctly aligned
B. echo -n -e '\033%@'
=> disable unicode
=> mc with a ´3´ as border lines but correctly aligned
=> make menuconfig: correctly aligned

With disabled unicode one can use the konsole but it does not look very nice.
Maybe another font corrects the strange borderlines

Details xterm: no problems with unicode
You can start xterm with uncode :

Code: Select all

xterm -u8
I did not test login in the bash shell yet but I think it is the same as point 3.

See also http://gentoo-wiki.com/HOWTO_Make_your_ ... code/utf-8.
Top
aries
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Mon May 03, 2004 4:52 pm
Location: Sliedrecht the Netherlands

  • Quote

Post by aries » Tue Nov 14, 2006 11:33 am

For this moment I disable unicode in the console.
I can live with this: xterm with unicode works.

Unicode in the console does not work for me: mc and 'make menuconfig' for example show the strange borderlines.
Changing fonts etc does not help, I did not try 'the 'neep' font.

It seems unicode + ncurses (or the way ncurses is used) is a problem.
See also http://forums.gentoo.org/viewtopic-t-49 ... ight-.html

Searching the internet gave me the impression that for menuconfig the use of ncursesw could possibly solve the problem, but I have not tried this yet
(see http://lkml.org/lkml/2005/12/24/66)
Top
dementer
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 139
Joined: Sun Jan 25, 2004 5:18 am
Location: New Zealand

  • Quote

Post by dementer » Tue Nov 14, 2006 11:42 am

Its not just ncurses you have to rebuild tho, I found a quick reference on google about ncurses dependencies. I usually get this on new installs when Ive been mucking wth the use flags early on.

Also this may come in handy for you
http://gentoo-wiki.com/TIP_Resetting_Your_Console
Top
Post Reply

10 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy