GNU readline

GNU readline

Infobox Software
name = GNU readline
developer = Brian Fox, Chet Ramey
latest_release_version = 5.2
latest_release_date = October 11 2006
operating_system = Various
programming_language = C
license = GNU General Public License
website = [http://tiswww.tis.case.edu/~chet/readline/rltop.html Official website]

GNU readline is a software library created and maintained by the GNU Project. It is licensed under the GPL, and used in projects such as bash. It provides line-editing capabilities. The current version is 5.2. Newer features include multibyte (Unicode) character support.

For instance, in a readline-enabled application, pressing ctrl-b moves the cursor back one space, ctrl-f moves the cursor forward one space, and ctrl-r searches the command history. These key bindings (which are the default, although bindings like vi's are optional) are taken from one of GNU's earliest and most popular projects, the text editor Emacs. Readline supports a variety of basic features, including a kill ring (a more flexible version of a copy/paste clipboard) and tab completion. As a cross-platform library, readline allows applications on various systems to exhibit identical line-editing behavior.

Readline is customized via its configuration file that can be default (~/.inputrc) or application specific. In this file, it is possible to define custom key bindings and change some other settings.

Criticism

There are several bugs and limitations, making readline difficult to use by third party applicationsFact|date=January 2008. Some features don't work as documented (for example, local echoing, which cannot be disabled), and removing key bindings is not possible. Its own manual page says, [http://www.freebsd.org/cgi/man.cgi?query=readline&apropos=0&sektion=0&manpath=FreeBSD+7-current&format=html#BUGS "It's too big and too slow."] .

While Readline is a cross-platform library, some platforms do not include readline as part of the default system. It is, however, relatively easy to build independently.

Programs that are not distributed under the GPL usually use readline as an optional feature. Such programs would typically allow the user to specify whether or not to link with the readline library at build time.

This [http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/doc/Why-CLISP-is-under-GPL email exchange between Richard Stallman and Bruno Haible] suggests that such steps do not necessarily allow the resulting software to escape the GPL. However, it predates the appearance of NetBSD's editline library, a BSD-licensed API-compatible implemention of the same functionality, so the argument that such software must be intended to link with readline is not as strong today.

See also

*GNU Project

External links

* [http://tiswww.tis.case.edu/~chet/readline/rltop.html GNU readline homepage]
* [http://www.astro.caltech.edu/~mcs/tecla/index.html The Tecla command-line editing library] - readline replacement with an MIT-style licence
* [http://www.thrysoee.dk/editline/ Editline Library (libedit)] - readline replacement with a BSD-style licence
* [http://utopia.knoware.nl/~hlub/rlwrap/ rlwrap] - tools that provides readline functionality while running a command that does not already have it


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • GNU readline — Тип Библиотека Автор Брайан Фокс Разработчик Чет Рамэй Написана на C Операционная система Различные Первый выпуск 1989 Последняя версия …   Википедия

  • GNU readline — Entwickler Brian Fox, Chet Ramey Aktuelle Version 6.1 (1. Januar 2010) Betriebssystem plattformunabhängig Programmier­sprache C …   Deutsch Wikipedia

  • GNU Readline — Développeur Projet GNU Dernière version …   Wikipédia en Français

  • GNU Octave — У этого термина существуют и другие значения, см. Octave. GNU Octave …   Википедия

  • GNU Bash — Bourne Again shell  Ne doit pas être confondu avec batch ou bâche. Bourne Again shell …   Wikipédia en Français

  • Liste des paquets GNU — Article principal : GNU. GNU N est pas Unix Cet article liste les paquets logiciels du système GNU maintenus par le projet GNU et soutenus par la Free Software Foundation. Sommaire …   Wikipédia en Français

  • Liste Des Paquets GNU — GNU N est pas Unix Ceci est une liste des paquets logiciel développés par ou maintenus par la Free Software Foundation pour GNU, un système d exploitation libre, compatible UNIX, dont le développement a débuté en 1984. Un grand nombre de ces… …   Wikipédia en Français

  • Liste des paquets gnu — GNU N est pas Unix Ceci est une liste des paquets logiciel développés par ou maintenus par la Free Software Foundation pour GNU, un système d exploitation libre, compatible UNIX, dont le développement a débuté en 1984. Un grand nombre de ces… …   Wikipédia en Français

  • Список пакетов GNU — Это список программного обеспечения, разрабатываемого Free Software Foundation как часть проекта GNU  UNIX подобной операционной системы состоящей целиком из свободного программного обеспечения. Большая часть из этих пакетов также… …   Википедия

  • CLISP — GNU CLISP Pantalla CLISP Desarrollador …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”