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
Catting the VT100 Torture Test toggles Keyboard States #915
Comments
The file contains the respective escape sequences a number of times, so it's correct that mintty acts on them. No issue. |
The test isn't meant to toggle the states and it didn't do it previous versions of mintty, and doesn't in other terminals either. I'm wondering if there's a sequence missed to not restore states after? |
You have leds on your keyboard? ;^> |
The DEC sequences are defined to manipulate the LEDs only, not the state. The Windows API does not match that right away, so mintty makes additional calls to compensate for that. This used to work. |
I guess the actual change of state is applied in interaction with the program, so it would need mintty to go through its idle loop in order to restore the key states properly. If you output these escape sequences in one quick bunch, that would not work, so it's also a timing issue. |
IMO I'd say if it's not possible to toggle the lights without also toggling the actual states of a modern keyboard then it might unfortunately be worth removing the feature as you mention. It's probably going to cause more problems than it's worth to be able to toggle some lights which modern keyboards don't even have. |
@BrianInglis, your opinion or vote? |
For a demo or test, this feature is amusing. |
Aye, and that's in fact how it works (I got it wrong above). |
If the Windows OS, console or GUI environments do not provide native support for per-window keyboard state and automatic save/restore, the application should not, as that breaks the expected system keyboard state model, which I assume and expect is global. |
attempted an asynchronously decoupled implementation
Released 3.0.3. |
Hey,
Using the VT 100 Torture test file, if I
cat
this file out to the terminal it does the following things:Num Lock
offAttached is the test I'm using.
vt100test.txt
The text was updated successfully, but these errors were encountered: