Curses

Curses

Curses

Este artículo trata sobre la biblioteca Unix de programación.

Curses es una biblioteca para el control de terminales sobre sistemas tipo Unix, posibilitando la construcción de un Interfaz para el usuario, para aplicaciones ejecutadas en un terminal. Fue creado por Ken Arnold y originariamente lanzado con la distribución Unix BSD, donde tenía varios juegos que dependían de ésta biblioteca. El más notable y mítico de ellos Rogue aún tiene sus seguidores. (Erróneamente se suele decir que fue utilizado por el editor de texto vi. La conexión está mal entendida; el código de curses que optimiza el movimiento de cursor de un área a otra fue tomado prestado del editor vi, mucho anterior que la biblioteca curses.)

Utilizando esta biblioteca, los programadores pueden escribir aplicaciones para ejecutarse en modo texto, sin tener que escribir específicamente para ningún tipo de terminal. Durante la ejecución de la aplicación, será la curses quien se ocupe de enviar los caracteres correctos al monitor que tenga que mostrarlos.

El modelo de programación se basa en tener uno o más objetos ventana móviles sobre el monitor. Cada ventana es una matriz de caracteres, siendo el programador quien determine el aspecto y comportamiento de dicha ventana. La biblioteca también tiene capacidades para registrar eventos y secuencias de control sobre los terminales.

Es tan sencilla de programar como crear una matriz que especifica cómo tendrá que aparecer la ventana en la pantalla. El resto del trabajo corre por cuenta de los manejadores de curses.

Véase también

Referencias

  • John Strang: Programming with curses, O'Reilly, ISBN 0-937175-02-1

Enlaces externos (en inglés)

Obtenido de "Curses"

Wikimedia foundation. 2010.

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

Mira otros diccionarios:

  • Curses — Curses  это библиотека для Unix подобных ОС, позволяющая создавать интерфейс, подобный графическому, в текстовом режиме. Первая библиотека curses была написана Кеном Арнольдом и поставлялась в комплекте BSD UNIX, где была использована для… …   Википедия

  • curses — ist der Name verschiedener Programmbibliotheken zur Darstellung zeichenorientierter Benutzerschnittstellen (Text User Interface, TUI) unabhängig vom darstellenden Textterminal bzw. Terminalemulator. Zunächst gab es eine Implementierung der… …   Deutsch Wikipedia

  • Curses —  Ne doit pas être confondu avec Curse. Curses est le nom d une bibliothèque logicielle permettant le développement sous Unix d environnements en mode texte, indépendamment du terminal informatique utilisé, et pour tout type d applications.… …   Wikipédia en Français

  • Curses! — For the computer game, see Curses (computer game). Curses! Directed by Grover Jones Fatty Arbuckle (unconfirmed) Written by Fatty Arbuckle (as William Goodrich) Starring …   Wikipedia

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

  • CURSES —    Like the oath, the utterance of a curse was believed to have magic powers that could destroy its victim by an inherent force. In the Epic of Gilgamesh, the hero Enkidu curses the courtesan who had introduced him to civilization, and only a… …   Historical Dictionary of Mesopotamia

  • curses —    Although invoking God s power to curse is generally done by the clergy, in previous centuries some lay people who believed themselves deeply wronged would utter a ritualized curse, kneeling on their bare knees in some public place in the… …   A Dictionary of English folklore

  • curses (programming library) — curses is a terminal control library for Unix like systems, enabling the construction of text user interface (TUI) applications. The name is a pun on the term “cursor optimization”. It is a library of functions that manage an application s… …   Wikipedia

  • Curses (programming library) — curses is a terminal control library for Unix like systems, enabling the construction of text user interface (TUI) applications.Curses is a on the term cursor optimization . It is a library of functions that manage an application s display on… …   Wikipedia

  • Curses-based software — is software whose user interface is implemented through the Curses library, or a compatible library (such as Ncurses).Curses is designed to facilitate GUI like functionallity on a text only device, such as a PC running in console mode, a hardware …   Wikipedia

Compartir el artículo y extractos

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