Re: Patch to make readline parse CSI keycodes properly

2009-07-28 Thread Chet Ramey
> me scribbled: > > the small patch below > > defines a function called 'skip-csi-seq' that skips over the CSI > > parameter, intermediate, and final bytes. This is assigned to "\e[". > > Since bindings for longer sequences take precedence over shorter ones, > > CSI sequences that do have functions

Re: Patch to make readline parse CSI keycodes properly

2009-07-28 Thread Andy Koppe
me scribbled: > the small patch below > defines a function called 'skip-csi-seq' that skips over the CSI > parameter, intermediate, and final bytes. This is assigned to "\e[". > Since bindings for longer sequences take precedence over shorter ones, > CSI sequences that do have functions bound to th

Patch to make readline parse CSI keycodes properly

2009-07-20 Thread Andy Koppe
Hi, This is about a small problem with readline that has long been bugging me: when pressing an unbound key or key combination in bash and other readline programs, somewhat cryptic characters are often inserted into the command line. For example, you might get "~" for Insert, "4~" for F12, or ";5A