Jeff Quast
Jeff Quast
Blessed is API compatible and Maintained if this is a concern for you. https://blessed.readthedocs.io/en/latest/index.html
@ktdreyer yes, blessed is API compatible with blessings, from README > _Blessed_ is a fork of _blessings_, which does all of the same above with the same API, as well...
I added a generator that given an input bytestring yields special curses KEY_LEFT & etc constants, or the bytestring/unicode as-is. https://github.com/jquast/blessings
I don't like using curses.initscr().getch() at all. Hate it, in fact. I wanted some curses features in blessings that required calling initscr() first, but calling initscr() has nasty consequences on...
This version supplies trans_input and keyname: https://github.com/jquast/x84/blob/master/x84/blessings.py no cooked mode in it, though.
I've created a pull request to implement a _resolve_mulitbyte method, which is a generator for iterating over unicode strings that contain multibyte input sequences, such as \x1b[A translated to KEY_UP....
I've added win32 and posix termios magic bits for character-at-a-time processing in my tree. With any luck we can close this issue in the next few days. I think the...
I've completed the implementation in the attached pull request (which also includes sequence formatting) with a human test case so far, test_keyboard.py. I'll add automated tests for the parsers.
This is too fun, I suppose we'll all be making games soon! http://ascii.io/a/2859
I found this gem on the python-tulip ML for windows keyboard input, "Example of non-blocking asyncronous console input using Windows API calls in Python." https://bitbucket.org/techtonik/async-console-input/src/91faf1cbad38e239ea701d990d21dbab6adcb23d/asyncinput.py?at=default