LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-04-2013, 09:03 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Posts: 443

Rep: Reputation: 32
Question [Midnight Commander] Couple of issues


Hello

I'm having a couple of issues using Midnight Commander 4.7.0.9 on an embedded Linux device running Debian 6:

1. After logging on through SSH, I wanted to configure MC to provide smooth scrolling. As there was none in /etc/mc/, I created /etc/mc/mc.ini with the relevant instruction (panel_scroll_pages=0), logged on, logged back on: Smooth scrolling still doesn't work.

2. Altough the Putty SSH client is configured to use xterm as on the Linux host, MC displays some strange characters. See the attachement.

Any idea how to solve those issues?

Thank you.
Attached Images
File Type: png midnight.commander.issues.png (9.7 KB, 23 views)
 
Old 04-04-2013, 06:06 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Kubuntu
Posts: 1,189

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Ad 1) Settings in /etc/mc/mc.ini are read only if there are no config in user home directory. If you even once started mc, then they will be not read. Logging off is not necessary, just closing all user mc instances is enough.

Ad 2) It looks like incorrect fonts on Debian or Putty config. Try to set other by "setfont", available fonts should be in "/usr/shared/consolefonts". Check also TERM and LANG environment variables. Check that you use the same character set on Putty and Debian (I think default is UTF8).
 
Old 04-11-2013, 05:07 AM   #3
littlebigman
Member
 
Registered: Aug 2008
Posts: 443

Original Poster
Rep: Reputation: 32
Thanks for the infos about the fonts. Since it works OK on Ubuntu, I'll check how they're configured there. As a work around:
1. In Putty/Kitty, load settings for this host
2. Window > Translation: Change "Remote set translation" from "ISO-8859-1 Latin 1, West Europe" to "UTF-8"

As for smooth scrolling, still no go:
1. Ran "ps aux | grep mc" to check that it wasn't running
2. Removed the user-specific configuration file: cd ; rm -Rf ./.mc/
3. Checked system-wide configuration: cat /etc/mc/mc.ini : panel_scroll_pages=0
4. Ran mc: Still no smooth scrolling
 
Old 04-11-2013, 06:02 AM   #4
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 860

Rep: Reputation: 87
About the strange characters, I was having this problem in run level 3. I posted a thread and learned I needed to install unicode. I was not, however, having this problem in X. I can't help you with smooth scrolling. For me just using the directional keys works. My two cents worth in case you ever run a console outside X. Good luck!
 
Old 04-11-2013, 09:24 AM   #5
Cotun
Member
 
Registered: Jan 2009
Location: UK
Distribution: Debian Stable and Unstable
Posts: 61

Rep: Reputation: 21
I don't know if this helps you, but running Midnight Commander with the following syntax is a useful workaround on a local box with font issues:-

mc -a

I've been having this problem with it for years on my Debian box
 
Old 04-11-2013, 05:04 PM   #6
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 860

Rep: Reputation: 87
Quote:
Originally Posted by Cotun View Post
I don't know if this helps you, but running Midnight Commander with the following syntax is a useful workaround on a local box with font issues:-

mc -a

I've been having this problem with it for years on my Debian box
Installing unicode fixes that.
 
Old 04-12-2013, 07:50 AM   #7
littlebigman
Member
 
Registered: Aug 2008
Posts: 443

Original Poster
Rep: Reputation: 32
Thanks for the tip about "mc -a". It's a quick work-around, although I'll check how to install Unicode on an appliance running Debian.

Quote:
-a, --stickchars
Disable usage of graphic characters for line drawing.
What about MC not supporting smooth scrolling, even after going through the steps I wrote?

FWIW, I'm connecting to the Debian appliance through SSH, not logged on on the console.
 
Old 04-12-2013, 08:34 AM   #8
Cotun
Member
 
Registered: Jan 2009
Location: UK
Distribution: Debian Stable and Unstable
Posts: 61

Rep: Reputation: 21
Quote:
Originally Posted by SharpyWarpy View Post
Installing unicode fixes that.
Yes, I know, but I run a mixed Debian stable and unstable system and I had issues with some terminal emulators while others worked fine. I couldn't manage to easily make it work and so I just figured the workaround was easier for my purposes.
 
Old 04-12-2013, 09:03 AM   #9
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 860

Rep: Reputation: 87
Quote:
Originally Posted by Cotun View Post
Yes, I know, but I run a mixed Debian stable and unstable system and I had issues with some terminal emulators while others worked fine. I couldn't manage to easily make it work and so I just figured the workaround was easier for my purposes.
Very well, then. Have you thought about editing your /home/user/.bashrc file with this line?
Code:
alias mc='mc -a'
 
Old 04-14-2013, 11:45 AM   #10
Cotun
Member
 
Registered: Jan 2009
Location: UK
Distribution: Debian Stable and Unstable
Posts: 61

Rep: Reputation: 21
I haven't and don't really use Midnight Commander enough to justify it, but thanks for the tip, I hadn't thought of doing that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [Midnight Commander] A couple of questions littlebigman Linux - Software 7 07-06-2011 02:47 AM
[SOLVED] Midnight Commander Woodsman Slackware 10 06-30-2011 07:44 PM
Midnight Commander help? masterross Linux - Software 3 01-22-2008 09:25 AM
Midnight Commander XPediTioN Slackware 2 07-12-2003 11:45 PM
RH8, Unicode Font and Term issues with Midnight Commander under remote console Mulefire Linux - Distributions 1 12-28-2002 09:37 AM


All times are GMT -5. The time now is 04:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration