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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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! |
| |||
| 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 |
| |||
| 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! |
| |||
| 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! |
| |||
| 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! |
| |||
| 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 |
| ||||
| 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 ** ************************************************** ****************** |