Re: Mouse stopped working in MC

2020-02-02 Thread Thomas Dickey
- Original Message -
| From: "Frank McCormick" 
| To: "Thomas Dickey" 
| Cc: mc@gnome.org
| Sent: Sunday, February 2, 2020 4:09:26 PM
| Subject: Re: Mouse stopped working in MC

| On 2/2/20 1:24 PM, Thomas Dickey wrote:
|> On Sun, Feb 02, 2020 at 09:08:33AM -0500, Frank McCormick wrote:
|>>
|>>
|>> On 2/2/20 6:04 AM, Yury V. Zaytsev wrote:
|>>> I would be careful about assigning blame with xterm maintainer also
|>>> reading this list ;-) Maybe we are doing something that gets xterm
|>>> confused... do you have a way of consistenly reproducing the problem?
|>>>
|>>> On Sun, 2 Feb 2020, Adam Pribyl wrote:
|>>>
| Is it reproducible? This happens from time to time, but is not mc
| fault but xterm. It shoul help to reset the term with "reset"
| command.
|
| On Sat, 1 Feb 2020, Frank McCormick wrote:
|
|>   I am running Debian Sid fully updated. My mouse has stopped
|>   working in MC. Instead I get key codes on the MC command line.
|>   I normally run MC in an xterm.
|>
|>   How do I go about resolving this.
|>>>
|>>
|>> On my machine, if I go into /usr/bin and run xterm directly, THEN run mc (or
|>> mc -x) the mouse works properly. However
|>> if I pass any parameters to xterm, such as -g 150x40 -e mc
|>> then the mouse stops working and I get keycodes on the
|>> mc command line.
|>>
|>> I should note that I get into /usr/bin by running this small
|>> script.
|>>
|>> cd ~
|>> xterm -g 153x40+150+20 -fn 10x20
|> 
|> That could be this bug:
|> 
|> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495435
|> 
|> e.g., if xterm is confused about the screensize due to this
|> race (which is hard to fix due to the interaction between
|> X11, Xt libraries and the window manager -- there's _always_
|> a delay).
|> 
|> As a workaround, just typing "resize" should fix that.
|> 
|> If you happen to see the problem again, it's worth a moment to verify.
|> 
|> fwiw, I do this:
|> 
|>  resize -s 40 80
|> 
|> to get a 40x80 screen (works _all_ the time :-)
|> 
| 
|   After further experimentation I discovered the problem only arises
| when I use the -e parameter to xterm to run MC directly.
| When I do that i.e. xterm -e mc , the mouse doesn't work. Right now I am
| working around that by using urxvt and avoiding xterm
| entirely when I need to use the -e parameter. I have also tried
| the wrappers uxterm and lxterm and both render the mouse inoperable when
| I use the -e parameter.
| I still am not sure what the problem  is...why would urxvt not
| suffer from it ?

with "-e", you just get the command you asked for, no login-shell.

rxvt and others may imitate xterm, but sometimes get the details a little off.

You might be able to see the difference using strace

-- 
Thomas E. Dickey 
http://invisible-island.net
ftp://ftp.invisible-island.net
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Mouse stopped working in MC

2020-02-02 Thread Frank McCormick



On 2/2/20 1:24 PM, Thomas Dickey wrote:

On Sun, Feb 02, 2020 at 09:08:33AM -0500, Frank McCormick wrote:



On 2/2/20 6:04 AM, Yury V. Zaytsev wrote:

I would be careful about assigning blame with xterm maintainer also
reading this list ;-) Maybe we are doing something that gets xterm
confused... do you have a way of consistenly reproducing the problem?

On Sun, 2 Feb 2020, Adam Pribyl wrote:


Is it reproducible? This happens from time to time, but is not mc
fault but xterm. It shoul help to reset the term with "reset"
command.

On Sat, 1 Feb 2020, Frank McCormick wrote:


  I am running Debian Sid fully updated. My mouse has stopped
  working in MC. Instead I get key codes on the MC command line.
  I normally run MC in an xterm.

  How do I go about resolving this.




On my machine, if I go into /usr/bin and run xterm directly, THEN run mc (or
mc -x) the mouse works properly. However
if I pass any parameters to xterm, such as -g 150x40 -e mc
then the mouse stops working and I get keycodes on the
mc command line.

I should note that I get into /usr/bin by running this small
script.

cd ~
xterm -g 153x40+150+20 -fn 10x20


That could be this bug:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495435

e.g., if xterm is confused about the screensize due to this
race (which is hard to fix due to the interaction between
X11, Xt libraries and the window manager -- there's _always_
a delay).

As a workaround, just typing "resize" should fix that.

If you happen to see the problem again, it's worth a moment to verify.

fwiw, I do this:

resize -s 40 80

to get a 40x80 screen (works _all_ the time :-)



  After further experimentation I discovered the problem only arises 
when I use the -e parameter to xterm to run MC directly.
When I do that i.e. xterm -e mc , the mouse doesn't work. Right now I am 
working around that by using urxvt and avoiding xterm

entirely when I need to use the -e parameter. I have also tried
the wrappers uxterm and lxterm and both render the mouse inoperable when 
I use the -e parameter.

I still am not sure what the problem  is...why would urxvt not
suffer from it ?


Frank
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Mouse stopped working in MC

2020-02-02 Thread Thomas Dickey
On Sun, Feb 02, 2020 at 09:08:33AM -0500, Frank McCormick wrote:
> 
> 
> On 2/2/20 6:04 AM, Yury V. Zaytsev wrote:
> > I would be careful about assigning blame with xterm maintainer also
> > reading this list ;-) Maybe we are doing something that gets xterm
> > confused... do you have a way of consistenly reproducing the problem?
> > 
> > On Sun, 2 Feb 2020, Adam Pribyl wrote:
> > 
> > > Is it reproducible? This happens from time to time, but is not mc
> > > fault but xterm. It shoul help to reset the term with "reset"
> > > command.
> > > 
> > > On Sat, 1 Feb 2020, Frank McCormick wrote:
> > > 
> > > >  I am running Debian Sid fully updated. My mouse has stopped
> > > >  working in MC. Instead I get key codes on the MC command line.
> > > >  I normally run MC in an xterm.
> > > > 
> > > >  How do I go about resolving this.
> > 
> 
> On my machine, if I go into /usr/bin and run xterm directly, THEN run mc (or
> mc -x) the mouse works properly. However
> if I pass any parameters to xterm, such as -g 150x40 -e mc
> then the mouse stops working and I get keycodes on the
> mc command line.
> 
> I should note that I get into /usr/bin by running this small
> script.
> 
> cd ~
> xterm -g 153x40+150+20 -fn 10x20

That could be this bug:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495435

e.g., if xterm is confused about the screensize due to this
race (which is hard to fix due to the interaction between
X11, Xt libraries and the window manager -- there's _always_
a delay).

As a workaround, just typing "resize" should fix that.

If you happen to see the problem again, it's worth a moment to verify.

fwiw, I do this:

resize -s 40 80

to get a 40x80 screen (works _all_ the time :-)

-- 
Thomas E. Dickey 
https://invisible-island.net
ftp://ftp.invisible-island.net


signature.asc
Description: PGP signature
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Mouse stopped working in MC

2020-02-02 Thread Adam Pribyl

On Sun, 2 Feb 2020, Frank McCormick wrote:




On 2/2/20 6:04 AM, Yury V. Zaytsev wrote:
I would be careful about assigning blame with xterm maintainer also 
reading this list ;-) Maybe we are doing something that gets xterm 
confused... do you have a way of consistenly reproducing the problem?


On Sun, 2 Feb 2020, Adam Pribyl wrote:

Is it reproducible? This happens from time to time, but is not mc 
fault but xterm. It shoul help to reset the term with "reset" command.


On Sat, 1 Feb 2020, Frank McCormick wrote:


 I am running Debian Sid fully updated. My mouse has stopped
 working in MC. Instead I get key codes on the MC command line.
 I normally run MC in an xterm.

 How do I go about resolving this.




On my machine, if I go into /usr/bin and run xterm directly, THEN run mc 
(or mc -x) the mouse works properly. However

if I pass any parameters to xterm, such as -g 150x40 -e mc
then the mouse stops working and I get keycodes on the
mc command line.

I should note that I get into /usr/bin by running this small
script.

cd ~
xterm -g 153x40+150+20 -fn 10x20

I do this because I run rox-filer to put icons on the desktop
with Icewm.

Since this problem started, I have changed running xterm to
running lxterm (for a unicode env) and the problem has
disappeared.


xterm should be also utf8 capable, if this is enabled during build 
(ctrl+right click should shoul utf8 stuff - if this is enough). I also use 
IceWm on Fedora and I am not able to reproduce it this way, but I know it 
happens from time to time...


The problem has been resolved but I don't understand what is happening 

or why.

Frank
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Mouse stopped working in MC

2020-02-02 Thread Frank McCormick



On 2/2/20 6:04 AM, Yury V. Zaytsev wrote:
I would be careful about assigning blame with xterm maintainer also 
reading this list ;-) Maybe we are doing something that gets xterm 
confused... do you have a way of consistenly reproducing the problem?


On Sun, 2 Feb 2020, Adam Pribyl wrote:

Is it reproducible? This happens from time to time, but is not mc 
fault but xterm. It shoul help to reset the term with "reset" command.


On Sat, 1 Feb 2020, Frank McCormick wrote:


 I am running Debian Sid fully updated. My mouse has stopped
 working in MC. Instead I get key codes on the MC command line.
 I normally run MC in an xterm.

 How do I go about resolving this.




On my machine, if I go into /usr/bin and run xterm directly, THEN run mc 
(or mc -x) the mouse works properly. However

if I pass any parameters to xterm, such as -g 150x40 -e mc
then the mouse stops working and I get keycodes on the
mc command line.

I should note that I get into /usr/bin by running this small
script.

cd ~
xterm -g 153x40+150+20 -fn 10x20

I do this because I run rox-filer to put icons on the desktop
with Icewm.

Since this problem started, I have changed running xterm to
running lxterm (for a unicode env) and the problem has
disappeared.

The problem has been resolved but I don't understand what is happening 
or why.


Frank


___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc