Re: mc mouse events don't work with foot terminal
Timmy Douglas via mc <[email protected]> Mon, 22 Jan 2024 17:36:08 -0800
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <[email protected]> |
"Yury V. Zaytsev via mc" <[email protected]> writes: > On Mon, 22 Jan 2024, Grzegorz Szymaszek via mc wrote: > >> On Mon, Jan 22, 2024 at 09:01:13AM +0100, Yury V. Zaytsev wrote: >>> It seems that it's not very xterm-compatible after all. I would bring >>> this up with foot authors. >> >> FWIW, here mc handles mouse clicks/scrolls correctly: > > Ha-ha, now we have someone who doesn't have a problem :-) Sounds like the > OP's distro has a broken terminfo then... and at least on vanilla Debian > things are working as they should. Is there something I can try to diagnose what's going on? The mouse seems to work in `htop`, which appears to use the same ncurses library. TERM=xterm-color seems to work for me after trying again. xterm and xterm-256color seem to have a broken mouse. On Guix, the terminfo is stored like this: env|grep TERMINFO TERMINFO_DIRS=/home/timmy/.guix-profile/share/terminfo:/home/timmy/.guix-profile/share/terminfo ls -l /home/timmy/.guix-profile/share/terminfo/f/foot lrwxrwxrwx 1 root root 77 Dec 31 1969 /home/timmy/.guix-profile/share/terminfo/f/foot -> /gnu/store/ph72n1rhg92ydk7v7j76vjaalcmq66ai-foot-1.16.2/share/terminfo/f/foot >>> P.P.S. The entry for foot is missing here: [...] So I wonder if all >>> keys actually work. >> >> F1-F12, Page Up/Down, Home, End, Insert and arrows all work correctly. >> Shift+F1 works like F3, Esc then 4 works like F4. > > Sounds like an ages old bug: > > https://midnight-commander.org/ticket/367 > https://midnight-commander.org/ticket/3254 > >> Is there something else I can test? > > You can try to add > > [terminal:foot] > copy=xterm I was going to try this but Guix makes the global directories read-only and it appears the user local one is only searched if the global one doesn't exist. -- mc mailing list [email protected] https://lists.midnight-commander.org/mailman/listinfo/mc