🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #123

standalone use of readline/history

#123
From: Don Faulkner
Date: Thu, 15 Jun 1989 20:24
29 lines
1403 bytes
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
Technical Details
Message-ID: <FAULKNER.89Jun15162448@jmullins.harvard.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!faulkner

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!husc6!faulkner
From: faulkner@jmullins.harvard.edu (Don Faulkner)
Newsgroups: gnu.bash.bug
Subject: standalone use of readline/history
Message-ID: <FAULKNER.89Jun15162448@jmullins.harvard.edu>
Date: 15 Jun 89 20:24:48 GMT
Sender: news@husc6.harvard.edu
Distribution: gnu
Organization: Harvard University
Lines: 29