ncurses

ncurses
ncurses
Linux-menuconfig.png
ncurses-based menuconfig
Developer(s) GNU Project
Stable release 5.9 / 4 April 2011; 7 months ago (2011-04-04)
Operating system POSIX
Type Widget toolkit
License MIT license
Website www.gnu.org/software/ncurses/ncurses.html

ncurses (new curses) is a programming library that provides an API which allows the programmer to write text user interfaces in a terminal-independent manner. It is a toolkit for developing "GUI-like" application software that runs under a terminal emulator. It also optimizes screen changes, in order to reduce the latency experienced when using remote shells.

Contents

History

The N in ncurses comes from the word new. This is because ncurses is a free software emulation (clone) of the System V Release 4.0 (SVr4) curses, which was itself an enhancement over the discontinued classic 4.4 BSD curses.[1] The XSI Curses standard issued by X/Open is explicitly and closely modeled on System V.

curses

The first curses library was developed at the University of California at Berkeley, for a BSD operating system, around 1980 to support a screen-oriented game. It originally used the termcap library, which was used in other programs, such as the vi editor.[1]

The success of the BSD curses library prompted Bell Labs to release an enhanced curses library in their System III and System V Release 1 Unix systems. This library was more powerful and instead of using termcap, it used terminfo. However, due to AT&T policy regarding source-code distribution, this improved curses library did not have much acceptance in the BSD community.[1]

pcurses

Around 1982, Pavel Curtis started work on a freeware clone of the Bell Labs curses, named pcurses, which was maintained by various people through 1986.[2]

ncurses

The pcurses library was further improved when Zeyd Ben-Halim took over the development effort in late 1991.[1][2][3] The new library was released as ncurses in November 1993, with version 1.8.1 as the first major release. Subsequent work, through version 1.8.8 (1995), was driven by Eric S. Raymond, who added the form and menu libraries written by Juergen Pfeifer.[4] Since 1996, it has been maintained by Thomas E. Dickey.[2]

Most ncurses calls can be easily ported to the old curses. System V curses implementations can support BSD curses programs with just a recompilation.[5] However, a few areas are problematic, such as handling terminal resizing, since no counterpart exists in the old curses.

Terminal database

Ncurses can use either terminfo (with extensible data) or termcap. Other implementations of curses generally use terminfo; a minority use termcap. Few (mytinfo was an older exception[6]) use both.

License

Ncurses is a part of the GNU Project. It is one of the few GNU files not distributed under the GNU GPL or LGPL; it is distributed under a permissive free software licence, similar to the MIT License.[7] This is due to the agreement made with the Free Software Foundation at the time the developers assigned their copyright.

When the agreement was made to pass on the rights to the FSF, there was a clause that stated

"The Foundation promises that all distribution of the Package, or of any work "based on the Package", that takes place under the control of the Foundation or its agents or assignees, shall be on terms that explicitly and perpetually permit anyone possessing a copy of the work to which the terms apply, and possessing accurate notice of these terms, to redistribute copies of the work to anyone on the same terms".[7]

According to the maintainer Thomas E. Dickey, this precludes relicensing to the GPL in any version, since it would place restrictions on the programs that will be able to link to the libraries.[7]

However, because it is Free Software Foundation software, they may choose to GPL it in the future.[8]

Programs using ncurses

There are hundreds of programs which use ncurses.[9][10] Some, such as GNU Screen and w3m, use only the termcap interface, performing screen management within the application. Others, such as GNU Midnight Commander and YaST use the curses programming interface.

See also

References

External links

Programming Introductions

Toolkits

  • NDK++ Development Kit for C++

Language bindings

Distributions and packages


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Ncurses — Desarrollador Proyecto GNU www.gnu.org/software/ncurses/ncurses.html Información general Última versión estable 5.6 …   Wikipedia Español

  • Ncurses — Entwickler: Free Software Foundation Aktuelle Version: 5.7 (2. November 2008) Betriebssystem: Unix Derivate, GNU/Li …   Deutsch Wikipedia

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

  • ncurses — menuconfig основанный на ncurses Тип Библиотека элементов интерфейса (виджетов) …   Википедия

  • ncurses — Entwickler Free Software Foundation Aktuelle Version 5.9 (4. April 2011) Betriebssystem Unix Derivate, GNU/Linux Kategorie Komponentenbibliothek …   Deutsch Wikipedia

  • Ncurses — Тип Widget toolkit Разработчик GNU Project ОС POSIX Версия 5.7 (2 ноября, 2008) Лицензия MIT …   Википедия

  • Ncurses — es una librería de programación que provee una API que permite al programador escribir interfaces basadas en texto, TUIs. También optimiza el refresco de la pantalla, lo que permite reducir la latencia experimentada cuando se usan shells remotas …   Enciclopedia Universal

  • Ncurses — Infobox Software name = ncurses caption = developer = GNU Project latest release version = 5.6 latest release date = release date|2006|12|23 operating system = POSIX genre = Widget toolkit license = MIT license website =… …   Wikipedia

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

  • Curses — ncurses Entwickler: Free Software Foundation Aktuelle Version: 5.7 (2. November 2008) Betriebssystem: Unix Derivate, GNU/Li …   Deutsch Wikipedia

Share the article and excerpts

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