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
mintty + wsl.exe + tmux: resizing tmux pane with mouse not working #1238
Comments
Using wsl.exe imposes severe limitations on terminal function because wsl.exe has its own idea of what a terminal could be. |
@mintty Thanks for pointing out wsltty to me, just aware of it. Let me try if that fix the problem. For your question how to start WSL, not sure if this is what you were asking, but I just start it by running To determine WSL IP address, I just use |
I tried wsltty already. It fixes the tmux pane resizing problem indeed, however when running tmux a benefit So I probably will continue using Thanks! (If the tmux pane resizing issue under |
I use ssh to connect to WSL2 on localhost as well, with a small script in shell:startup to start a hidden persistent wsl session, as unfortunately ssh sessions don't keep it alive. wsl.vbs: set ws=wscript.CreateObject("wscript.shell")
ws.run "wsl sleep infinity", 0 It's the Relative file links in WSL sessions can be made to work by telling mintty what your working directory is in terms of the
This works with wsltty as well. Absolute paths and those starting with |
Unfortunately, there are more prerequisites to using ssh, so I don't think it can be used reliably in a package for WSL connectivity:
|
@ak2 have you tried
@mintty Not really. You can use 127.0.0.1 as I said. The other 2, right, but I think it is pretty simple. |
sshd staying alive isn't an issue, but WSL itself shuts down after 8 seconds if there isn't a wsl.exe session, even if an ssh session is open. |
If you have multiple WSL distributions running, it will not be possible to reach them by the same IP.
For a WSL frontend (similar to wsltty), the issue is to get this done automatically, on-the-fly. |
I see your point. Thanks, @mintty . |
I have an idea to create a new "bridge" that would be resilient against changes in the WSL system by using wsl.exe. |
If I use mintty to run
wsl.exe
then run tmux there (i.e.mintty.exe -e wsl -- tmux
in short), then resizing tmux pane with mouse does not work.But if I run
wsl.exe
in cmd and run tmux there, then no problem.If I use mintty to ssh WSL and run tmux there, then also no problem.
The text was updated successfully, but these errors were encountered: