-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
default msys2 console is unusable in win10 #1633
Comments
Try installing winpty ( |
There is a fix in git for detecting if the standard handles are connected to a named pipe and the name is checked to see if it is a Cygwin pipe. It might be worth turning this into a new msys2_isatty() function and using that in all the packages that have this problem. We would need to ask for very liberal licensing permission for that though so that we can use it everywhere, or else we'd need to write our own version without reference to the original. |
regarding |
It depends what your definition of "normal commands" is. Programs that run under the msys-2.0.dll/Cygwin POSIX emulation environment will work fine in MinTTY. Native Windows programs like node, or anything in /mingw64/bin or /mingw32/bin are from a different runtime environment so they are not perfectly compatible with msys-2.0.dll/Cygwin. |
You can run MSYS2 in a native Windows console instead of MinTTY, which should allow interactive native Windows programs to work better. I know that MinGW interactive Ruby (irb) works better. I use this simple batch script to launch MSYS2 and one of the features is that I can select which terminal to use: |
@DavidEGrayson did it always have that problem with "normal commands", or it's something that was introduced recently? Maybe I haven't noticed that before if the problem always existed. |
I think it has not changed recently. The |
Well, anyways, I've made some changes in my
and second thing, i changed |
nodejs is no longer available. |
something is wrong with default msys2 console window on win10 (not sure if that's win10 specific). If I open msys2 console (which uses mintty by default) then i cannot use any interpreters the way it used work. For example, if I simply run
node
then I can type wherever I want there and nothing will happen, as if nothing was entered, no js gets executed. Same problem with perl. In my case node is regular win32 isntall of node, perl is msys perl. If I use non mintty terminal, then everything works as expected.On top of that, after updating to latest msys I had to uncomment
set MSYS2_PATH_TYPE=inherit
to ensure thatnode
can be found. By default msys2_shell start mintty:if NOT EXIST "%WD%mintty.exe" goto startsh
, but if you change it to alwaysstartsh
then it won't use mintty and default bash will be used, which to me looks now identical to mintty, not even shure what the difference now, except that node and perl in interactive mode work properlyThe text was updated successfully, but these errors were encountered: