Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menu/mouse not working in neither iterm2 or terminal on osx #123

Open
maxandersen opened this issue Dec 1, 2024 · 8 comments
Open

menu/mouse not working in neither iterm2 or terminal on osx #123

maxandersen opened this issue Dec 1, 2024 · 8 comments

Comments

@maxandersen
Copy link

I can't access the menus with keyboard nor mouse on OSX in neither iterm2 or terminal app.

@joouha
Copy link
Owner

joouha commented Dec 4, 2024

Does it work in any other terminals (e.g. wezterm, kitty, alacritty)?

Does mouse support work in other TUI apps?

How are you trying to access the menus using the keyboard? Does F10 work?

@maxandersen
Copy link
Author

Does it work in any other terminals (e.g. wezterm, kitty, alacrity)?

haven't tried those. will do if need be.

Does mouse support work in other TUI apps?

yes, i.e. uv textual-demo runs fine and react to mouse.

How are you trying to access the menus using the keyboard? Does F10 work?

I tried again and got keyboard to work - using ctrl. not alt or cmd as usual on osx. my bad.

so keyboard works, its mouse thats the challenge.

@jace
Copy link

jace commented Dec 20, 2024

Came here to report the same problem. I thought iTerm2 was misreporting window size because mouse clicks were registering way off, but this is only happening in Euporie.

Mouse support works correctly in Warp Terminal however.

@jace
Copy link

jace commented Dec 20, 2024

Tested in Termux. It works but there's a glitch that appears at top left and causes the menubar to misrender (second screenshot). It looks like there's a leaky interaction with the terminal somewhere.

Screenshot_2024-12-20-18-49-43-07_84d3000e3f4017145260f7618db1d683 Screenshot_2024-12-20-18-51-01-35_84d3000e3f4017145260f7618db1d683

@joouha
Copy link
Owner

joouha commented Dec 31, 2024

Hi,

Thanks for reporting.

Unfortunately I do not have an apple computer, so cannot easily test euporie with iterm2 or terminal.app.

I suspect that this is an issue with SGR pixel mode: euporie tries to detect if a terminal support pixel-wise mouse positioning (as opposed to terminal cell based positioning), and my guess is that this is failing in these terminals.

I've just identified the same issue using wezterm on Windows, so hopefully fixing that will fix this too.

@jace I suspect this is a separate issue. Were that any steps taken between your first and second screenshots which triggered the rendering error in the menu-bar?

@jace
Copy link

jace commented Dec 31, 2024

I just navigated down and back up and tried to get into the menus.

@maxandersen
Copy link
Author

using version from #124

Whats weird is that using ghostty mouse interactions are working but i I get bunch of weird characters added to text after have run a cell. does not happen all the time.

in iterm2 things works better rendering wise but i dont seem to get those ansi characters - mouse still broken.

@joouha
Copy link
Owner

joouha commented Jan 2, 2025

The SGR pixel mode issue should now be fixed by 496b6d8

There is also an issue that means that sometimes an opened notebook does not get focused at startup, meaning the menu cannot be clicked using the mouse. Clicking on a notebook cell focuses then notebook, then the menu can be clicked with the mouse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants