Date: Thu, 8 Aug 1996 10:37:52 +0200 (IST) From: Eli Zaretskii To: Jason Kridner Cc: djgpp AT delorie DOT com Subject: Re: Any *good* ports of the GNU Readline Library? In-Reply-To: <31FF8438.716@ti.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 "[" 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.