On Wednesday, May 3, 2017 at 5:04:44 AM UTC-5, Edward K. Ream wrote:

The next step will be to bind a new key to run-selected-unit-tests-locally. 
> It appears that curses can't handle Alt-4.  I'll try Ctrl-4 instead.
>

Testing shows that curses handles key presses in an "interesting" manner.  
As in largely undocumented and likely idiosyncratic across platforms :-) 
Here a table got from tracing the low-level key code:

  1: Ctrl-a
  9: Tab == Ctrl-h
...
 26: Ctrl-z = Ctrl-Shift-Z: 26
 27: Ctrl-[
...
 48: 0
 49: 1
...
 57: 9
 65: A (same as Ctrl-Shift-a, Alt-Shift-A, etc.)
...
 90: Z
 97: a (same as Ctrl-a, Alt-a, etc.)
...
122: z
126: ~
 ...
160: Ctrl-space
...
265: F1
...
276: F12
351: Shift-Tab

This is a bit of a nightmare, but the bottom line is that the F-keys are 
available. Note that the clash between Tab and Ctrl-H doesn't matter much 
because npyscreen handles tabs in the widgets.

As soon as I executed the run-unit-tests command the code crashed in 
npyscreen/fmForm.py with an AttributeError(!).  Should be easily fixed. In 
retrospect, the decision to work on a copy of the npyscreen sources seems 
wise.

On to the unit tests!

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to