[Toybox] [PATCH] scan_key: support more terminals.

Rob Landley rob at landley.net
Sat Mar 23 12:55:33 PDT 2019


On 3/23/19 2:44 PM, enh via Toybox wrote:
> Since we can't use TAGGED_ARRAY for this (without inflicting pain on all
> the callers) I've also switched to OR-ing in the modifier keys, so we
> have (say) KEY_UP|KEY_SHIFT rather than a separate KEY_SUP. This also
> generalizes better should we ever need to support multiple modifiers at
> once.

I had use cases in mind for this that required ascii indentifier strings for
keys, but as long as I'm never implementing vi I might as well just abandon all
the not-curses infrastructure and let other people figure out how to fix
crunch_str() for trailing combining characters and remove stuff like screen from
the todo list...

Rob



More information about the Toybox mailing list