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

Rob Landley rob at landley.net
Sun Apr 14 11:08:41 PDT 2019


I'm waiting or you to get to a good stopping point, then I can factor common
code out into lib/.

Rob

On 4/14/19 2:06 AM, Jarno Mäkipää wrote:
> vi does not necessarily need so many function keys in order to be usable. 
> Mostly escape, and  30 or so different control key commands in order to
> implement everything on man page.
> 
> But I think after vi has all the basic functionality done, things like utf-8 and
> handling of text buffer, could be reused
> to make clones of other editors. 
> 
> -Jarno
> 
> 
> On Sat, Apr 13, 2019 at 6:15 AM Rob Landley <rob at landley.net
> <mailto:rob at landley.net>> wrote:
> 
>     On 4/12/19 8:58 PM, David Seikel wrote:
>     > I presume you meant to send this to the list.
> 
>     Yup.
> 
>     > On Fri, 12 Apr 2019 15:52:10 -0500 Rob Landley <rob at landley.net
>     <mailto:rob at landley.net>> wrote:
>     >
>     >> On 4/11/19 9:46 PM, David Seikel wrote:
>     >>>>> luckily i suspect in 2019 we mainly want function keys just so we
>     >>>>> can throw them away and get on to the next meaningful keypress!
>     >>>>> but i can easily put this back to one constant per key if you
>     >>>>> prefer.   
>     >>>>
>     >>>> Unfortunately a command line utility doesn't get to _see_ the
>     >>>> function keys, so yeah probably. 
>     >>>
>     >>> Users of mc and mcedit need functioning function keys, though they
>     >>> do have a backup of Esc $DIGIT, which helps when a lot of X
>     >>> terminals use F10 for their menus.  I know I long ago tried to get
>     >>> mcedit into toybox. 
>     >>
>     >> I googled, the first page is entirey about a world editor for
>     >> minecraft?
>     >
>     > mcedit is the text editor that comes with midnight commander, it can
>     > be used stand alone.  Dunno about minecraft.
> 
>     I'd planned to make an editor I could program to act like (at least) vi,
>     microemacs, joe, and nano. But somebody else is writing a vi so I guess not...
> 
>     Rob
>     _______________________________________________
>     Toybox mailing list
>     Toybox at lists.landley.net <mailto:Toybox at lists.landley.net>
>     http://lists.landley.net/listinfo.cgi/toybox-landley.net
> 



More information about the Toybox mailing list