Unix Technical Forum

10.2 RXVT ncftp/mc topbar glitch?

This is a discussion on 10.2 RXVT ncftp/mc topbar glitch? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Running MC in an RXVT box (under X11/IceWM), the RXVT top title bar reports that MC is running, and ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 12:05 PM
MikesBrain
 
Posts: n/a
Default 10.2 RXVT ncftp/mc topbar glitch?


Running MC in an RXVT box (under X11/IceWM), the RXVT top
title bar reports that MC is running, and what dir it is
looking at.

Neat feature, but it stays like that even after MC has been
closed and another app opened, including the last dir MC
had open.

Same thing (almost) with ncftp, except it closes leaving the
legend "xterm", regardless.

The MC glitch wasn't there as I recall back in the 9 series.

Any clues as to where to look to fix this?

Cheers.


Mike@N.UK
--
----
* MikesBrain+WebStuff @ http://tinyurl.com/5ayqt
- Schauen Sie immer auf der hellen Seite des Lebens!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 12:05 PM
bobby
 
Posts: n/a
Default Re: 10.2 RXVT ncftp/mc topbar glitch?

Hi Mike,

Well, I know where not to look:
My favorite WM (Blackbox) duplicates the behavior.
So it's not an IceWM thing.

Uhmmmm, not much help is it?

Jan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 12:05 PM
olive
 
Posts: n/a
Default Re: 10.2 RXVT ncftp/mc topbar glitch?

MikesBrain wrote:
> Running MC in an RXVT box (under X11/IceWM), the RXVT top
> title bar reports that MC is running, and what dir it is
> looking at.
>
> Neat feature, but it stays like that even after MC has been
> closed and another app opened, including the last dir MC
> had open.
>
> Same thing (almost) with ncftp, except it closes leaving the
> legend "xterm", regardless.
>
> The MC glitch wasn't there as I recall back in the 9 series.
>
> Any clues as to where to look to fix this?
>
> Cheers.
>
>
> Mike@N.UK

The title of an xterm/rxvt can be set by:
echo -ne "\033]0;something\007"

You can edit the mc script (mc is an alias to alias
'. /usr/share/mc/bin/mc-wrapper.sh' ) and reset the window title from
there. If you put the following line in your bash initialisation file:

test "$TERM" == "xterm" && PROMPT_COMMAND="$PROMPT_COMMAND ; "'echo -ne
"\033]0;${PWD}\007"'

then the title of the xterm/rxvt will follow the current directory
(solving also your problem). I do not know how to know, in a script,
what is the current window title.

Olive
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 12:05 PM
MikesBrain
 
Posts: n/a
Default Re: 10.2 RXVT ncftp/mc topbar glitch?

2005-11-28, Responding to bobby...
> Hi Mike,
>
> Well, I know where not to look:
> My favorite WM (Blackbox) duplicates the behavior.
> So it's not an IceWM thing.
>
> Uhmmmm, not much help is it?
>
> Jan


It helps, as I now at least know where not to spend my time
looking. Every little helps! Cheers!


P.S. I think the way ncFTP and MC are setup in 10.2 is the
route for investigation. Either that, or the butler did it.

Mike@N.UK
--
----
* MikesBrain+WebStuff @ http://tinyurl.com/5ayqt
- Schauen Sie immer auf der hellen Seite des Lebens!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 12:05 PM
MikesBrain
 
Posts: n/a
Default Re: 10.2 RXVT ncftp/mc topbar glitch?

2005-11-28, Responding to olive...
> MikesBrain wrote:
>> Running MC in an RXVT box (under X11/IceWM), the RXVT top
>> title bar reports that MC is running, and what dir it is
>> looking at.
>>
>> Neat feature, but it stays like that even after MC has been
>> closed and another app opened, including the last dir MC
>> had open.
>>
>> Same thing (almost) with ncftp, except it closes leaving the
>> legend "xterm", regardless.
>>
>> The MC glitch wasn't there as I recall back in the 9 series.
>>
>> Any clues as to where to look to fix this?
>>
>> Cheers.
>>
>>
>> Mike@N.UK

> The title of an xterm/rxvt can be set by:
> echo -ne "\033]0;something\007"
>
> You can edit the mc script (mc is an alias to alias
> '. /usr/share/mc/bin/mc-wrapper.sh' ) and reset the window title from
> there. If you put the following line in your bash initialisation file:
>
> test "$TERM" == "xterm" && PROMPT_COMMAND="$PROMPT_COMMAND ; "'echo -ne
> "\033]0;${PWD}\007"'
>
> then the title of the xterm/rxvt will follow the current directory
> (solving also your problem). I do not know how to know, in a script,
> what is the current window title.
>
> Olive


Hmmm... A bit of reverse "fiddling" may help me remove
whatever has been added to 10.2's MC files. This may help.
Thanks.


Mike@N.UK
--
----
* MikesBrain+WebStuff @ http://tinyurl.com/5ayqt
- Schauen Sie immer auf der hellen Seite des Lebens!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 12:05 PM
MikesBrain
 
Posts: n/a
Default Re: 10.2 RXVT ncftp/mc topbar glitch?

2005-11-28, Responding to MikesBrain...
>
> Running MC in an RXVT box (under X11/IceWM), the RXVT top
> title bar reports that MC is running, and what dir it is
> looking at.
>
> Neat feature, but it stays like that even after MC has been
> closed and another app opened, including the last dir MC
> had open.
>
> Same thing (almost) with ncftp, except it closes leaving the
> legend "xterm", regardless.
>
> The MC glitch wasn't there as I recall back in the 9 series.



Aha! Found it!

Its in the ~/.mc/ini file under the [Layout] section.

The line "xterm_title=1" needs altering to a "0" value to
turn this feature/function off.

Hope this helps you "olive"?

Cheers for the help guys.


Mike@N.UK
--
----
* MikesBrain+WebStuff @ http://tinyurl.com/5ayqt
- Schauen Sie immer auf der hellen Seite des Lebens!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 12:08 PM
Christopher Pinon
 
Posts: n/a
Default Re: 10.2 RXVT ncftp/mc topbar glitch?

On 2005-11-29, MikesBrain <Mike@N.UK> wrote:
>
> Aha! Found it!
>
> Its in the ~/.mc/ini file under the [Layout] section.
>
> The line "xterm_title=1" needs altering to a "0" value to
> turn this feature/function off.
>
> Hope this helps you "olive"?
>
> Cheers for the help guys.


Hi, for what it's worth, you can also turn this feature off via one of
the menus (in configuration; uncheck the relevant box).

Christopher
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 12:08 PM
Eef Hartman
 
Posts: n/a
Default Re: 10.2 RXVT ncftp/mc topbar glitch?

MikesBrain <Mike@n.uk> wrote:
> P.S. I think the way ncFTP and MC are setup in 10.2 is the
> route for investigation. Either that, or the butler did it.


mc in xterm (actuallu xfterm4, but that is a script which in my case
runs xterm with a different title bar) does the same, Slackware 10.0
(and as far as I remember in 9.1 too).
I just tested it on a pure xterm (with the default title bar of
"xterm") and it doesn't reset that one either.
All in Slackware 10.0 so it isn't 10.2 either.

I think they just forgot to check the "previous title" before
changing it into the directory.
Haven't got ncFtp installed, so cannot check that one.
--
************************************************** ******************
** Eef Hartman, Delft University of Technology, dept. EWI/TW **
** e-mail: E.J.M.Hartman@math.tudelft.nl, fax: +31-15-278 7295 **
** snail-mail: P.O. Box 5031, 2600 GA Delft, The Netherlands **
************************************************** ******************
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com