mc doesn't properly appears in screen

Bug #320240 reported by Maxim D.
4
Affects Status Importance Assigned to Milestone
screen (Ubuntu)
Invalid
Undecided
Micah Cowan

Bug Description

Binary package hint: screen

Hi!

Sorry for my weak english ;) I'll try to be clear...

I use mc in screen via ssh sessions.
All time I use it, mc has black areas. Usually it is shown in the editor on blank lines.
This effect is not shown if I do not use screen.

It was in Ubuntu 8.04 and 8.10 (and before as I remember)

Package: screen
Architecture: i386
Version: 4.0.3-11

Package: mc
Architecture: i386
Version: 2:4.6.2~git20080311-2

Screenshot is included

Thank you!

Revision history for this message
Maxim D. (mdeviatov) wrote :
Revision history for this message
Micah Cowan (micahcowan) wrote :

Hi, and thanks very much for your bug report.

I can't seem to reproduce this in 8.10 under gnome-terminal.

You said that you're running mc in screen over ssh... which system is Ubuntu? Is it just the local system, the remote system, or both systems running Ubuntu (and are they the same versions)? Do you experience this problem even when running mc under screen locally (not under ssh)? What terminal program are you using, and what does 'echo $TERM' print, both inside and outside of screen? It will also be helpful to switch on logging within screen (C-a H) before starting mc, and attach the resulting screenlog.0 file to this report (if you view it with a pager like less, it may mimick a text file; but it is actually a binary file, so treat it like one: don't attempt to copy/paste it)

Thanks!

Changed in screen:
assignee: nobody → micahcowan
status: New → Incomplete
Revision history for this message
Maxim D. (mdeviatov) wrote :

Hi! Thank you for your attention!

1. Now I use Ubuntu 8.10 Server. The same problem I have with 8.04 Server. I don't use X.
2. This bug exist in all modes: local, over ssh.
3. mc running without screen works perfectly
4. remotely WindowsXP, putty, over ssh, without screen: echo $TERM -> xterm
    remotely WindowsXP, putty, over ssh, with screen: echo $TERM -> xterm
    local, without screen: echo $TERM -> linux
    local, with screen: echo $TERM -> xterm
5. screenlog included

Revision history for this message
Maxim D. (mdeviatov) wrote :

It may be helpfull:

echo $LANG
ru_RU.UTF-8

Revision history for this message
Micah Cowan (micahcowan) wrote :

It's the value of $TERM that is wrong when you're running within screen. Screen sets TERM=screen before it invokes a shell, so something is changing that (most likely your shell profile or rcfile, but also look for a "setenv" command in your ~/.screenrc).

I'll go ahead and close this bug out, as it appears to be a problem with your configuration, rather than a bug with GNU Screen (or Ubuntu). Please re-open if you find this isn't the case. If you have trouble finding where TERM is being set, or how best to deal with it, please feel free to contact me directly. If you use IRC, I'm frequently at #screen on at freenode.net.

Changed in screen:
status: Incomplete → Invalid
Revision history for this message
Maxim D. (mdeviatov) wrote : Re: [Bug 320240] Re: mc doesn't properly appears in screen

Thank you very much!

I found this mistake. It was wrong string in my screenrc: term= xterm
Now it works perfectly!

=====
It's the value of $TERM that is wrong when you're running within screen.
Screen sets TERM=screen before it invokes a shell, so something is
changing that (most likely your shell profile or rcfile, but also look
for a "setenv" command in your ~/.screenrc).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.