-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
What is .terminfo for Windows Terminal? #6045
Comments
If youa re using an msys runtime version earlier than cygwin-3.1, you're hitting cygwin's emulation layer. There's nothing we can do about that, and changing your The cygwin emulation layer was finally replaced in cygwin-3.1 with something that detects when the Windows Console (and therefore Terminal) support VT encoded data. |
I am not using cygwin, what are you talking about? Can you share .terminfo for Windows Terminal? |
msys is based on the cygwin runtime. 😓 I am not sharing the .terminfo for Windows Terminal because changing the |
The one that I am using doesn't have any cygwin DLLs. Whatever, I will compose .terminfo by deciphering your source code. Thanks. |
You're not really listening to me. That patch, which is part of the msys2 runtime code, changes the dll name from cygwin to msys2. Msys2 is Cygwin. I cannot stress this enough: There is nothing that the terminfo can do to work around msys2's translation layer, which it got from Cygwin. |
Everything is fully functional in ConEmu, thus it is possible to do. |
Hey so we're maybe getting a tad bit off the rails here - lets start from the top.
|
I just upgraded msys2. Now msys-2.0.dll is 3.1.4 (funny, it's pi). It indeed helped somewhat: the keyboard works. However, mouse clicks just output escape codes to console as text. Obviously the escape codes are not what ncurses is set to recognize as mouse events. Still no .terminfo? |
I don't have WSL. |
There's not really a terminfo for the Windows Terminal - by all accounts, we're attempting to emulate Using WSL's |
Adding this in case it helps someone: I haven't tried this fix with Midnight Commander (I didn't even know what it was until 10 minutes ago), but I had a somewhat similar issue with Gradle output and setting But then I also ran into an issue with zsh, resulting from that:
I managed to fix that by overriding those functions, as described by https://bbs.archlinux.org/viewtopic.php?id=151738 |
TERM value for Windows 10 terminal - Super User export TERM=ms-terminal |
Still no mouse in mc. |
We don't maintain a My recommendation has always been to use Mouse support has worked in the Terminal for some time now. It works best in WSL applications. There are some caveats for |
I just checked in msys2 with all latest updates. Mouse doesn't work. At least in mc. |
Windows-Terminal is a bit overconfident about its compatibility, they are missing some xterm features.
This at least fixes the overtyping/partial update problems I get on some systems. It would be great to actually supply a terminal config that specifies the real capabilities… (tested/used mainly to access FreeBSD systems, that would use xterm features not yet implemented. There might be more missing features for other platforms.) |
@TypedLambda I'd much rather focus on implementing the missing features. Which ones are you missing? IRM was just implemented in 1.17, which is likely the source of any overtyping you may have seen. |
Can you share .terminfo for Windows Terminal? I tried to start Midnight Commander from msys command prompt, the keyboard and mouse are not working at all. A usual way to solve it is just to compile .terminfo and set TERM to the corresponding value.
Environment
Steps to reproduce
Same with
mc -x
.Expected behavior
I expect Midnight Commander to work
Actual behavior
Midnight Commander doesn't response on any keyboard our mouse input.
The text was updated successfully, but these errors were encountered: