🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Don Faulkner Thu, 15 Jun 1989 20:24
standalone use of readline/history
#123
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads