Bug 288192 - konsole will not run midnight Commander
Summary: konsole will not run midnight Commander
Status: RESOLVED LATER
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.6.4
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-04 12:57 UTC by Andrew Lyall
Modified: 2011-12-05 16:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Lyall 2011-12-04 12:57:22 UTC
Version:           2.6.4 (using KDE 4.7.3) 
OS:                Linux

when I type "mc" at the prompt, the error is:
"Your terminal lacks the ability to clear the screen or position the cursor."
maybe I altered something that has this effect. But there doesnt seem to be a way to reset.


Reproducible: Always

Steps to Reproduce:
I was trying not to reproduce it! I uninstalled kdebase, since I thought Konsole was part of that, then re-installed, but no difference.


Expected Results:  
mc should load and show the usual screen with lists of files, split in the middle.

OS: Linux (x86_64) release 2.6.41.1-1.fc15.x86_64
Compiler: gcc
Comment 1 Jekyll Wu 2011-12-04 13:09:41 UTC
Well, I guess your $TERM environment variable is not correctly setup. The easy way to reproduce that error message is "export TERM=dumb; mc "

By default konsole set $TERM to "xterm". Could you check your $TERM ?
Comment 2 Andrew Lyall 2011-12-04 13:47:10 UTC
Thanks very much for that. I am something of a novice as you may have 
guessed. I am not sure what "setting xterm" involves. I think, now you 
mention it, that I must have deleted the text in a dialogue box. To get 
rid of the error do i then type"TERM=xterm; mc" ? or TERM=dumb;mc"
Thanks again,
Andrew
On 12/04/2011 01:09 PM, Jekyll Wu wrote:
> https://bugs.kde.org/show_bug.cgi?id=288192
>
>
>
>
>
> --- Comment #1 from Jekyll Wu<adaptee gmail com>   2011-12-04 13:09:41 ---
> Well, I guess your $TERM environment variable is not correctly setup. The easy
> way to reproduce that error message is "export TERM=dumb; mc "
>
> By default konsole set $TERM to "xterm". Could you check your $TERM ?
>
Comment 3 Andrew Lyall 2011-12-04 14:00:22 UTC
Getting somewhere: I ran konsole, then at the bash promt typed 
TERM=xterm [enter] then mc and mc ran ok. All I need now is to know how 
to save those commands in Setting, but it is not very helpful. There is 
a line that says "bin/bash". Do I add t to there somehow?
any help appreciated.

On 04/12/11 13:09, Jekyll Wu wrote:
> https://bugs.kde.org/show_bug.cgi?id=288192
>
>
>
>
>
> --- Comment #1 from Jekyll Wu<adaptee gmail com>   2011-12-04 13:09:41 ---
> Well, I guess your $TERM environment variable is not correctly setup. The easy
> way to reproduce that error message is "export TERM=dumb; mc "
>
> By default konsole set $TERM to "xterm". Could you check your $TERM ?
>
Comment 4 Jekyll Wu 2011-12-04 14:08:45 UTC
Please run "echo $TERM" in the bash, and tell me the result.

By default, that value should be "xterm" and mc should start up correctly. If not, open the "Config Current Profile" dialog, then open the "Environment" editor under the "General" tab, put one line "TERM=xterm" into it.
Comment 5 Andrew Lyall 2011-12-04 14:14:20 UTC
Thanks. I had just got to that, i.e. start konsole, go to settings at 
the top then to profile, General then environment and type in 
TERM=xterm. Is there any way I can get mc to start automatically?
On 04/12/11 14:08, Jekyll Wu wrote:
> https://bugs.kde.org/show_bug.cgi?id=288192
>
>
> Jekyll Wu<adaptee@gmail.com>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |adaptee@gmail.com
>
>
>
>
> --- Comment #4 from Jekyll Wu<adaptee gmail com>   2011-12-04 14:08:45 ---
> Please run "echo $TERM" in the bash, and tell me the result.
>
> By default, that value should be "xterm" and mc should start up correctly. If
> not, open the "Config Current Profile" dialog, then open the "Environment"
> editor under the "General" tab, put one line "TERM=xterm" into it.
>
Comment 6 Jekyll Wu 2011-12-04 14:24:15 UTC
(In reply to comment #5)

You can create a new profile and change its command to 'mc'. Then that profile should be marked as favorite and appear under "File -> New Tab". Now you can create new tab running 'mc' directly.

Just play around with Konsole for some time :)
Comment 7 Andrew Lyall 2011-12-04 14:39:52 UTC
Thanks yet again.
Comment 8 Andrew Lyall 2011-12-05 15:31:07 UTC
Jekyll,
I tried  your suggestion, but no luck. I have a Shell profile set to my 
home directory with the command"TER=xterm" set as the default and which 
goes to the directory and puts up the prompt. I also have a new profile 
which is the same except the command is "mc", but when i select it, it 
open a new tab at a new prompt but doesn't type or implement "mc".

On 04/12/11 14:24, Jekyll Wu wrote:
> https://bugs.kde.org/show_bug.cgi?id=288192
>
>
> Jekyll Wu<adaptee@gmail.com>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>               Status|UNCONFIRMED                 |RESOLVED
>           Resolution|                            |LATER
>
>
>
>
> --- Comment #6 from Jekyll Wu<adaptee gmail com>   2011-12-04 14:24:15 ---
> (In reply to comment #5)
>
> You can create a new profile and change its command to 'mc'. Then that profile
> should be marked as favorite and appear under "File ->  New Tab". Now you can
> create new tab running 'mc' directly.
>
> Just play around with Konsole for some time :)
>
Comment 9 Jekyll Wu 2011-12-05 15:49:47 UTC
(In reply to comment #8)

Did you open new tab using the profile dedicated for the 'mc' command? That new tab should run 'mc' direcly.

Or, maybe your $PATH has some problem. Try to specify the absolute path of 'mc' comannd(should be /usr/bin/mc or something silimar) in the profile.
Comment 10 Andrew Lyall 2011-12-05 16:28:22 UTC
OK. will try it.
On 05/12/11 15:49, Jekyll Wu wrote:
> https://bugs.kde.org/show_bug.cgi?id=288192
>
>
>
>
>
> --- Comment #9 from Jekyll Wu<adaptee gmail com>   2011-12-05 15:49:47 ---
> (In reply to comment #8)
>
> Did you open new tab using the profile dedicated for the 'mc' command? That new
> tab should run 'mc' direcly.
>
> Or, maybe your $PATH has some problem. Try to specify the absolute path of 'mc'
> comannd(should be /usr/bin/mc or something silimar) in the profile.
>