Problem with iterm2 on MacOS
First of all - fantastic tool. I love it from the first sight - and it will make our Airflow tmux configuration for development WAY, WAY, WAY better - you can see yourself the video of it running and enthusiasm of Airflow contributors https://github.com/apache/airflow/pull/58702
However, I have one issue on MacOS ARM + iTerm2.
For some reason (and I tried to figure out if it's my configuration or iterm2 handling of keys/mouse) some of the most important features of mprocs do not work with iterm2 on MacOS. They work perfeclty in the standard MacOS terminal, so I guess there are some compatibility issues with terminal capabilities.
The interesting thing is that it works differently in regular mprocs run and inside docker (our development environment is run in Docker)
- When I run mprocs directly in iTerm2, things work fine EXCEPT copy mode for mouse
- have iTerm2 (latest)
- have mprocs (latest 0.7.3)
- run mprocs
- a
- bash
Now - try to select something with mouse:
- When in docker also Ctrl-a to switch to the output panel does not work (it works without docker)
- have iTerm2
- have docker
- run -it debian
- apt update
- apt install wget
- wget https://github.com/pvolok/mprocs/releases/download/v0.7.3/mprocs-0.7.3-linux-aarch64-musl.tar.gz
- tar -xvzf mprocs-0.7.3-linux-aarch64-musl.tar.gz
- ./mprocs
- a
- bash
Now:
- observe that you can't switch to the output panel with Ctrl-a (or any other way I tried
- mouse clicks also do not enter copy mode
Again - it's possible it's something in my iTerm2 settings (have not touched them for a long time) but likely it's some terminal capability detection.
Also added an issue in iTerm2 - maybe it can be somewhat coordinated https://gitlab.com/gnachman/iterm2/-/issues/12628
Update: Mouse copying works after allowing mouse reporting:
I have not yet figured out Ctrl-A in Docker.
I am giving up on Ctrl-A in Docker. But I found out that Cmd + <- works as of Ctrl-a was pressed (switching focus in mprocs). Maybe that can give a clue ?
I'm happy to hear that you found mprocs useful!
There were and still are some issues with the keyboard handling. Recently I started to rewrite the parts that work with terminal without using libraries. The problem with libraries (crossterm, ratatui, termwiz) is that they have a lot of differences and causes problems. I plan to finish it and release a new version before Christmas. Hopefully most of the keyboard issues should be gone and new issues should be easily fixable.
Glad to hear it ! Looking forward to it - for now it's very usable as is anyway. Thanks for this great tool :)
Even now, we find it extremely useful for us.
We started to have some discussions on what we miss. Some small proposals/ideas will show up soon.
Great. Thanks!