Re: Mouse stopped working in MC

Thomas Dickey <[email protected]>
Newsgroups gmane.comp.gnome.apps.mc.general
Message-ID <20200202182427.l4orioruoyzfjwet@prl-debianold-64.jexium-island.net>
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 <[email protected]>
https://invisible-island.net
ftp://ftp.invisible-island.net

_______________________________________________
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQTFIEjAwHSP7iJ9R6JwI1Pg9+SO2wUCXjcT2wAKCRBwI1Pg9+SO
23FGAJ9kljVQDv8GFF8eGmQImbfC20rbHQCglsNrOzQLGLk83uS6ceTNV4vti94=
=2Vfv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.