Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: screen, mc, htop
Date: Sun, 13 Sep 2009 11:44:35
Message-Id: 200909131244.28698.michaelkintzios@gmail.com
In Reply to: [gentoo-user] Re: screen, mc, htop by Nikos Chantziaras
1 On Friday 11 September 2009, Nikos Chantziaras wrote:
2 > On 09/11/2009 08:08 PM, Paul Hartman wrote:
3 > > On Fri, Sep 11, 2009 at 11:58 AM, Nikos Chantziaras<realnc@×××××.de>
4 wrote:
5 > >> On 09/11/2009 07:04 PM, Willie Wong wrote:
6 > >>> On Fri, Sep 11, 2009 at 10:38:50AM -0500, Paul Hartman wrote:
7 > >>>> On Fri, Feb 13, 2009 at 2:35 PM, András, Csányi - Sayusi Ando
8 > >>>>
9 > >>>> <sayusi.ando@××××××.hu> wrote:
10 > >>>>> I use screen lot of and I like it veery much. Few weeks ago - when I
11 > >>>>> reinstall gentoo, started this weird thing.
12 > >>>>> If I start mc in the screen nothings happen. I can see the cursos is
13 > >>>>> stop before the last line and waiting...
14 > >>>>> Generally first time the mc is start and I can work with. But, random
15 > >>>>> long time later the mc is start doing this stupid behavior what I
16 > >>>>> wrote upper. This thing is independent what I did. Last time is
17 > >>>>> started after I use vim to edit an file. Yesterday started after I
18 > >>>>> write in mc's command line 'df -h' and hit Enter.
19 > >>>>
20 > >>>> This is a very old post, but I want to say I am experiencing the same
21 > >>>> problems with screen and mc (even after I initially replied saying I
22 > >>>> didn't have it :). Did you ever find a solution?
23 > >>>
24 > >>> I dunno if my problem is the same as yours, but it may not be just mc.
25 > >>> screen has been crapping out on me lately, and also randomly, like
26 > >>> described above, when I use some of the shell scripts that I wrote. It
27 > >>> only happens with interactive scripts that display a menu using
28 > >>> 'dev-util/dialog'. Most of the time it works, sometimes it doesn't:
29 > >>> after the previous dialog clears the screen, screen just sits there
30 > >>> blinking and not loading the next one.
31 > >>>
32 > >>> I'd be interested in a solution too, if there is one.
33 > >>
34 > >> If you start screen, then do "export TERM=xterm", does that fix the
35 > >> issues?
36 > >
37 > > So far that seems to fix it for me! But it's a very random and
38 > > non-reproducible error so only time will tell. mc froze on startup for
39 > > me just now (with TERM=screen) 5 times in a row; set TERM=xterm and mc
40 > > started without problem 5 times in a row. So that's a good sign, I
41 > > think.
42 > >
43 > > Thanks!
44 >
45 > I use that trick to get mouse support in mc under screen. Just thought
46 > it might solve even more issues.
47
48 I remember fixing a problem which may be related to this, by cp /etc/screenrc
49 ~/.screenrc and then editing ~/.screenrc to add lines like:
50
51 termcap rxvt hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
52 terminfo rxvt hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
53
54 under 'xterm tweaks'; this is because echo $TERM shows that my terminal is
55 rxvt - yours may be different.
56 --
57 Regards,
58 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature