with-readline is a small program that allows the GNU Readline library to be used with arbitrary programs, without having to recompile those programs. It is useful for improving the user interface of simple terminal-based programs which for whatever reason have not been modified to use Readline themselves.

For example, sftp can be made to use line editing, history, etc, by aliasing it to use with-readline as follows:

alias sftp="with-readline sftp"

Source Code

with-readline is tested under Linux and Mac OS X. It may work on other UNIX platforms (patches invited). You will of course need an installation of Readline (4.3 and 5.0 work, 4.2a does not). It is installed setuid to root on platforms that use BSD-style pseudo-terminal handling.


Mailing Lists

The SGO software mailing lists are used for announcements, bug reports, discussion of this program and others.




with-readline - apply Readline to arbitrary applications
Copyright © 2005 Richard Kettlewell

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

RJK | Contents