www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/07/13:59:50

Xref: news2.mv.net comp.os.msdos.djgpp:6751
Newsgroups: comp.os.msdos.djgpp
From: Jason Kridner <jdk AT ti DOT com>
Subject: Any *good* ports of the GNU Readline Library?
Message-ID: <31FF8438.716@ti.com>
Sender: news AT newshost DOT micro DOT ti DOT com
Organization: Texas Instruments
Mime-Version: 1.0
Date: Wed, 31 Jul 1996 16:05:12 GMT
Lines: 27
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm writing a simple interpretive scripting language with flex/bison
and would appreciate any advice on handling my input data stream.
My original plan was to use readline to provide input strings and to
use one of the curses libraries (pdc or ncurses) to provide scroll-back
functionality.  The language is very crude and really just acts as a
interpretive interface to a handful of library functions.  Even though
the functions themselves aren't very portable, I'd like to keep the
body of the language portable for future projects.

The interpreter is done, but it currently takes input only from stdin.
I plan on defining the flex function YY_INPUT or yy_switch_to_buffer to
read from my input string and other file streams.

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.

HELP!!!

Thanks and regards,
Jason Kridner
jdk AT ti DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019