kumavale / getch-rs Goto Github PK
View Code? Open in Web Editor NEW`getch` for Windows and Unix.
License: MIT License
`getch` for Windows and Unix.
License: MIT License
I try to send a ctrl + z to sisterm to suspend a running linux process on the other end of the serial line.
But unfortunately the key doesn't go through.
Here's the output of the getch example:
Ctrl('v')
Ctrl('c')
Ctrl('x')
Null <-- should be Ctrl('z')
Do you know, whether that's a limiation of windows?
On linux this works flawlessly.
Currently the previous mode will be used just as it was:
Lines 83 to 88 in f0611a2
but I noticed for example, that ctrl + c will not be passed to the application, but instead windows handels it.
This is due ENABLE_PROCESSED_INPUT
is set: https://learn.microsoft.com/en-us/windows/console/setconsolemode
I think we should set a reasonable default for the terminal, instead of relying the previous behavior.
I currently can only think of the ENABLE_VIRTUAL_TERMINAL_INPUT
as a valid value, all others don't really fit in here.
What do you think?
Related to this: kumavale/sisterm#20
When using Windows + German keyboard, keys including AltGr are not entered correctly.
1:Omit the carriage return at the end.
2:Enhance the ability to obtain all keys,eg. modifier keys,
No response
No response
Lines 32 to 75 in 1f1e7fb
Make enable_echo_input()
and disable_echo_input()
into one function (echo_input(bool)
).
Lines 158 to 204 in 49919d0
In nodelay mode, if there is no input waiting,
None
is returned.
In delay mode, the program will hang until the system passes text through to the program.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.