[gnu.bash.bug] standalone use of readline/history

faulkner@jmullins.harvard.edu (Don Faulkner) (06/16/89)

In the past, I've implemented a curses version of
the READLINE/HISTORY that is in bash. I've been thinking
about implementing it for non-full-screen applications ---
SURPRISE --- it's done!

One comment:  It would be nice to easily switch history lists --
i.e.:  have different history lists for different kinds of
responses (one for file names, one for commands, perhaps, one
for user names .....)

It is sort of wrapped in, but shouldn't be to difficult to
unwrap --- make a typedef struct that has a history list, amount
allocated, amount used ....   Then, each call to readline could
have a pointer to a history list as an argument (NULL would mean 
to use a common default history list)...

just fuel for the creative fires!
Ciao!
--

 Don Faulkner
 Building 1, Room 803
 Harvard University, School of Public Health
 665 Huntington Avenue
 Boston, MA  02115

 ARPA:      faulkner%jmullins@harvard.harvard.edu
 BITNET:    faulkner@harvard
 Telephone: (617) 732-2297