Re: Bug or WAD? Midnight Commander F10 different in xterm than native or rxvt

2010-07-10 Thread Peter Farley
--- On Fri, 7/9/10, Marco Atzeri  wrote:

> From: Marco Atzeri 
> Subject: Re: Bug or WAD? Midnight Commander F10 different in xterm than 
> native or rxvt
 
> on my Win-XP SP2 under cygwin/X 
> MC with F10 exits in the current directory
> 
> Peter,
> as mc is an alias
> alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
> 
> I guess that under X this wrapper is working 
> differently than under console

Marco,

Thanks, but in my xterm "which mc" returns "/usr/bin/mc", which is an "exe" and 
not an alias to the wrapper shell script.

Executing "/usr/bin/mc" from an xterm prompt produces the same result, it exits 
to the MC invocation directory instead of the current one.

Thanks for pointing out that wrapper script though.  Most interesting.

Peter



  

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Bug or WAD? Midnight Commander F10 different in xterm than native or rxvt

2010-07-10 Thread Peter Farley
--- On Thu, 7/8/10, Larry Hall (Cygwin X)  
wrote:

> From: Larry Hall (Cygwin X) 
> Subject: Re: Bug or WAD? Midnight Commander F10 different in xterm than 
> native or rxvt

> Sorry, I don't know anything about MC really but isn't
> there some doc on it that describes what F10 is supposed to do?

Yes, there is, from the "info mc" pages:

"   Quit (F10, Shift-F10)

   Terminate the Midnight Commander.  Shift-F10 is used when you want to 
quit and you are using the shell wrapper.  Shift-F10 will not take you to the 
last directory you visited with the Midnight Commander,  instead it will stay 
at the directory where you started the Midnight Commander."

I am not using the "wrapper" shell script, as far as I can tell (but I'm still 
looking hard to see if I am wrong about that).  Simple F10 in an xterm though 
*always* exits to the original directory.  "Shift-F10" has no effect at all 
inside of MC from an xterm in the testing I have done (nor do Ctrl-F10 or 
Alt-F10).  I guess it's *possible* that there is a bug that makes MC *think* it 
sees "shift-F10" when only simple "F10" was pressed, but that remains to be 
proven.

I will have to run a debugging version of MC with gdb to see the difference 
between xterm and non-xterm behavior.  I will report back when I have done that 
experiment.

It might be a while, but I will report back.

Thanks for your help and advice.

Peter



  

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/