Re: adding a command-line interface

From: Måns Rullgård (mru_at_kth.se)
Date: 03/31/04


Date: Wed, 31 Mar 2004 11:34:48 +0200


"Chris F.A. Johnson" <c.fa.johnson@rogers.com> writes:

> On Wed, 31 Mar 2004 at 00:40 GMT, Israel Hsu wrote:
>> Hi, everyone,
>>
>> I want to add a command-line interface to my program, an interface
>> with history and command-line editing. Is there a library that I can
>> use to easily customize and add such an interface? (besides getchar
>> and atoi, etc.)
>
> Try the GNU readline library: <ftp://ftp.gnu.org/pub/gnu/readline>

There's also a BSD licensed clone called libedit.

-- 
Måns Rullgård
mru@kth.se