Unix Programming - adding a command-line interface

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > March 2004 > adding a command-line interface





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author adding a command-line interface
Israel Hsu

2004-03-30, 7:34 pm

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.)

I've heard of ncurses for screen layout.

--Israel Hsu
Chris F.A. Johnson

2004-03-30, 8:34 pm

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>

--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
========================================
===========================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
Måns Rullgård

2004-03-31, 4:34 am

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

> On Wed, 31 Mar 2004 at 00:40 GMT, Israel Hsu wrote:
>
> 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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com