Shell curses

Shell curses

Shell Curses is a terminal control library for Unix-like systems, enabling the construction of text user interface (TUI) applications. The purpose of the function library is to provide the shell programmer with the ability to move the cursor to specific locations on the screen and display text or read input from a user. It consists of a library of functions that manage the display of a shell program or application on character-cell terminals (e.g., VT100).

History

Shell Curses function library was written by Dana French and originally released with French Menus in circa 1993, where it was used for building text based menus and data entry screens for database user interfaces. It was originally written in Bourne shell syntax utilizing the tput binary utility available on all Unix based systems. Later versions of Shell Curses were ported to Korn Shell, Korn Shell 93, and Bash. Shell Curses is also sometimes referred to as "shcurses".

Overview

For a simple shell utility, program, or application that does not require bit-mapped graphics or multiple fonts, an interface implementation using Shell Curses will usually be much simpler than one using an X toolkit or the "C" language curses library. Using Shell Curses, shell programmers are able to write text-based applications without writing directly for any specific terminal type. The Shell Curses function library on the executing system sends the correct control characters based on the terminal type. Also, since it is shell code, the programs generated using Shell Curses do not need to be compiled.

Portability

Although the Shell Curses function library was initially developed as Bourne Shell code under AT&T System V Release 4, since it is shell code, it ports unmodified to any Unix system, and between Bourne compatible shells. The syntax and arguments of using each function is also very similar to the corresponding curses function.

Numerous menuing and data entry systems exist based on shell curses and are used for a variety of purposes such as system administration, application administration, installation, database interaction, and others.

References

* French, Dana [http://www.ibm.com/developerworks/aix/library/au-shellcurses/index.html "Shell Curses Tutorial at IBM Developerworks"] , "IBM Developerworks", March 28, 2008.
* shunix [http://sourceforge.net/projects/shunix/ "Shell Based Unix Utilities"] , SourceForge, 2008
* Pierre-Philipp Braun [http://pbraun.nethence.com/doc/devel/ksh.html "Korn Shell programming"] , 2008
* Andrew Pantyukhin [http://wiki.freebsd.org/AndrewPantyukhin/Ports/iport "FreeBSD iport collection"] , June 17, 2008
* Brian Hiles [http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2007-01/msg00470.html "sprites/game in bash"] , January 16, 2007

ee also

*ncurses - New version of curses
*termcap – a database
*terminfo – a terminal database
*S-Lang – an interpreted language with some related features

External links

* [http://www.mtxia.com/css/Downloads/Scripts/Korn/Functions/shcurses/ Shell Curses Function Library]
* [http://www.mtxia.com/css/Downloads/Scripts/Korn/Functions/frenchMenus/ French Menus] , menuing system based on Shell Curses


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • 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

  • Text user interface — TUI short for: Text User Interface or Textual User Interface (and sometimes Terminal User Interface ), is a retronym that was coined sometime after the invention of graphical user interfaces, to distinguish them from text based user interfaces.… …   Wikipedia

  • List of Pokémon (320–386) — Pokémon has 646 (as of Pokémon Black and White) distinctive fictional species classified as the titular Pokémon. These creatures and entities reside throughout various locations of the fictional Pokémon universe and can be caught by humans… …   Wikipedia

  • Categoría:Software para Unix — Esta categoría es un contenedor general, utilizado para organizar categorías más precisas. Por su naturaleza amplia, sólo deben aparecer en ella los artículos muy generales. Por favor, utiliza en lo posible alguna de las subcategorías. Nota: Se… …   Wikipedia Español

  • Places in Harry Potter — J. K. Rowling s Harry Potter universe contains numerous settings for the events in her fantasy novels. These locations are categorised as a dwelling, school, shopping district, or government affiliated locale. Contents 1 Dwellings 1.1 The Burrow… …   Wikipedia

  • Single Unix Specification — Para otros usos del término SUS ,, véase SUS(desambiguación). Single Unix Specification (Especificación Única de Unix), es el nombre colectivo de una familia de estándares para sistemas operativos que establecen los requisitos para que un sistema …   Wikipedia Español

  • literature — /lit euhr euh cheuhr, choor , li treuh /, n. 1. writings in which expression and form, in connection with ideas of permanent and universal interest, are characteristic or essential features, as poetry, novels, history, biography, and essays. 2.… …   Universalium

  • List of fictional books — A fictional book is a non existent book created specifically for (i.e. within) a work of fiction. This is not a list of works of fiction (i.e., actual novels, mysteries, etc), but rather imaginary books that do not actually exist.UsesSuch a book… …   Wikipedia

  • SpongeBob SquarePants (season 7) — SpongeBob SquarePants Season 7 SpongeBob SquarePants, Season 7 Country of origin USA Broadcast …   Wikipedia

  • Magical objects in Harry Potter — The following is a list of magical objects used in Harry Potter. These objects exist for the use of the characters in the series by J. K. Rowling. Contents 1 Communication 1.1 Enchanted coins 1.2 Howler …   Wikipedia

Share the article and excerpts

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