Shell curses
From Wikipedia, the free encyclopedia
This article may not meet the general notability guideline or one of the following specific guidelines for inclusion on Wikipedia: Biographies, Books, Companies, Fiction, Music, Neologisms, Numbers, Web content, or several proposals for new guidelines. If you are familiar with the subject matter, please expand or rewrite the article to establish its notability. The best way to address this concern is to reference published, third-party sources about the subject. If notability cannot be established, the article is more likely to be considered for redirection, merge or ultimately deletion, per Wikipedia:Guide to deletion. This article has been tagged since April 2008. |
The creator of this article, or someone who has substantially contributed to it, may have a conflict of interest regarding its subject matter. |
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).
Contents |
[edit] 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.
[edit] 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.
[edit] 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.
[edit] References
- French, Dana "Shell Curses Tutorial at IBM Developerworks", IBM Developerworks, March 28, 2008.
[edit] See also
- ncurses - New version of curses
- termcap – a database
- terminfo – a terminal database
- S-Lang – an interpreted language with some related features