FACTOID # 151: The five countries with the highest coffee consumption are also the five countries whose citizens trust one another the most. Coincidence? Probably.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

FACTS & STATISTICS    Simple view

  1. Select countries to view: (hold down Control key and click to select several)

     

     

    Compare:

     

     

  1. Select fact or statistic: (* = graphable)

     

     

     

  2. (OPTIONAL) Compare to statistic: (both need to be graphable)

     

     

     

  3. View result as:

     

       
(OR) SEARCH ALL encyclopedia, stats & forums:   

Encyclopedia > Curses (programming library)

Curses is a terminal control library for Unix-like systems, enabling the construction of text user interface (TUI) applications. It was invented by Ken Arnold and originally released with BSD UNIX, where it was used for several games, most notably the Rogue game. The name curses is a pun on cursor optimization. Sometimes it is incorrectly stated that curses was used by the vi editor. In fact the code in curses that optimizes moving the cursor from one place on the screen to another was borrowed from vi, which predated curses. A computer display is an interface between the computer and the operator. ... Illustration of an application which may use libvorbisfile. ... A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification. ... TUI (Text User Interface) is a retronym that was coined sometime after the invention of graphical user interfaces, to distinguish them from text based user interfaces. ... Image:Http://www. ... Berkeley Software Distribution (BSD, sometimes called Berkeley Unix) is the Unix derivative distributed by the University of California, Berkeley, starting in the 1970s. ... Rogue is a dungeon crawling computer game dating from 1980. ... The correct title of this article is vi. ... To meet Wikipedias quality standards, this article or section may require cleanup. ... The correct title of this article is vi. ...


Using curses, programmers are able to write text-based applications without writing directly for any specific terminal type. The curses library on the executing system takes care of sending the correct control characters to the monitor in use based on the terminal type. The model is one of the programmer having one or more window objects that map on to the real display screen. Each window is a character matrix, and the programmer sets up the window to look as they want the display to look, and then tells the curses package to update the screen. The package figures out a relatively minimal set of changes needed to make to the display and then executes these using the terminal's specific capabilities and control sequences.


In the end, this means that the programmer simply creates a character matrix of how the screen should look and lets curses handle doing the work to make it so.


See also

Ncurses is a programming library providing an API, allowing the programmer to write text user interfaces in a terminal-independent manner. ...

References

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

External links

  • Curses tutorial (PDF format)
  • Public Domain Curses
  • Interface for Rexx programmers
  • Tcl Toolkit
  • X/Open Curses

  Results from FactBites:
 
Curses Programming with Python (2613 words)
The curses library supplies a terminal-independent screen-painting and keyboard-handling facility for text-based terminals; such terminals include VT100s, the Linux console, and the simulated terminal provided by X11 programs such as xterm and rxvt.
The curses library was originally written for BSD Unix; the later System V versions of Unix from ATandT added many enhancements and new functions.
The curses library also supports color on those terminals that provide it, The most common such terminal is probably the Linux console, followed by color xterms.
Curses (programming library) - Wikipedia, the free encyclopedia (304 words)
Curses is a terminal control library for Unix-like systems, enabling the construction of text user interface (TUI) applications.
Any connection is the other way around: The code in curses that optimizes moving the cursor from one place on the screen to another was borrowed from vi, which predated curses.)
The curses library on the executing system takes care of sending the correct control characters to the monitor in use based on the terminal type.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.