[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to make readline parse CSI keycodes properly
From: |
Chet Ramey |
Subject: |
Re: Patch to make readline parse CSI keycodes properly |
Date: |
Tue, 28 Jul 2009 11:52:24 -0400 |
> 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 them continue to work.
> > [...]
> > This is working correctly here, including when adding bindings for
> > longer keycodes: no more odd characters being inserted when
> > accidentally hitting the wrong key.
>
> Any interest in this? Perhaps without the default key binding?
Sorry, I haven't looked at it yet. It seems reasonable in concept, though.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/