Mail Archives: djgpp/1996/08/08/03:42:26
On Wed, 31 Jul 1996, Jason Kridner wrote:
> I downloaded the gdb sources for DJGPP to get a DJGPP version of the
> readline library. My assumption was that since *everyone* must use
> gdb, that the readline port must be pretty good. I guess that
> *everyone* does not use gdb, because there are some major limitations.
> For instance, I could not trap any of the arrow keys. readline seems
> to completely ignore the "<ESC>[" at the beginning of every function
> key. Also, it requires that you place the .inputrc file in a hard
> location.
Many people use GDB, but it turns out that most of them aren't bothered
by the fact that they have to press Ctrl-P instead of up-arrow and
Ctrl-B instead of left-arrow. However, given enough motivation, it
should be very easy to teach readline the PC-specific keys. You just
need to use the `getkey' or `getxkey' library functions and map the
PC-specific keys into the keystrokes that `readline' understands.
- Raw text -