-
Notifications
You must be signed in to change notification settings - Fork 106
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
[MSYS] Ability to launch WSL from existing Mintty install? #271
Comments
That is not correct. You can run e.g. |
However, you'd need to install wslbridge2 into your system to make this work. |
mintty is a terminal emulator, so you can run any program there. But the question is will it work without any issue?
Do you mean msys2? If yes then you can run wsl.exe there. But before that, you have to set the global environment variable But ConPTY does not support all characters (e.g. ♥♦♣♠). So, there are programs like socat, ssh, wslbridge, wslbridge2 etc. |
Hi!
You're right, how do I do this? |
Exactly my point, the programs are in PATH, so they will start, but the I/O would not be what we usually expect. Let me give some examples to show this:
|
Setting the value to 'enable_pcon' seems to have solved the issue. May I ask what additional stuff wslbridge is providing? |
wslbridge and walbridge2 just grab the buffer from WSL side and spit it to Windows side and vice versa. No extra processing in-between. But ConPTY does some. |
Is there a reason MSYS=enable_pcon is not set by default on MSys2/Mintty? Does it break some stuff? |
You may ask them:) |
Yes, it breaks some stuff. Here is the commit in msys2 which makes the ConPTY feature as opt-in msys2/msys2-runtime@22ba7ac. Also if you search |
Speaking of the actual question here, I have added a wslbridge2 release compiled with msys2 https://github.com/Biswa96/wslbridge2/releases. Just download, extract, run wslbridge2.exe in msys2. ConPTY is NOT required. |
Thanks for this. I noticed some issues with it too. Like, I ran
Sure, I'll check it out! |
Or copy the two wslbridge2 binaries (frontend and backend) into your /bin directory to enable full WSL-related feature support via |
That's what I did, thanks! So should I close this now? |
Actually, the mintty wiki already describes how to set up wslbridge2 to support launching WSL in mintty from cygwin or MSYS2: |
among systems based on glibc vs musl libraries (mintty/wsltty#271, mintty/wsltty#195)
Just a quick unrelated question - this wsl bridge method works only for WSL, right? And not for linux systems through SSH? |
Here is a direct quote from actual wslbridge's README:
|
Oh, okay, now it makes sense. Thanks! |
For remote ssh, wslbridge2 is not needed; just run ssh. |
I had this doubt because SSH from mintty was also problematic, before I set MSYS=enable_pcon |
You can also configure ssh shortcuts for the context menu session launcher and also for the taskbar icon as described in the manual. |
I've spent plenty of time customizing mintty (I absolutely love it for the sheer amount of SGR parameters it supports xD) - here's what I settled into:
|
I'm considering to add an option to enforce enabling ConPTY support, for use in combination with your remote SessionCommands entries on MSYS2. |
Yes, that might be helpful. One thing to note here is that I don't have OpenSSH installed on Msys2; the session commands here are using the ssh executable from Windows\System32 side. |
Released 3.4.5. |
Hi all! Just wanted to follow up on this issue after this was posted: https://www.msys2.org/news/#2022-09-24-conpty-support-enabled-by-default I still need to set |
Just speculating: |
Okay, I downloaded a fresh tar file of MSYS2, and it works fine there.
Where should I post this question? |
Don't know, look on their homepage. |
I use MSYS and the terminal Mintty that comes with it. However, as is well known, Mintty doesn't support running Windows commandline apps (like cmd, powershell). So I can't launch WSL from inside Mintty.
Question is, will I need to download and install WSLtty separately for WSL? Is there a way I can configure my already-installed Mintty to run WSL (possibly by using scripts/files from this repository)?
The text was updated successfully, but these errors were encountered: