FACTOID #151: The five countries with the highest coffee consumption are also the five countries whose citizens trust one another the most. Coincidence? Probably.
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 vieditor. 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.
The curseslibrary 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 curseslibrary was originally written for BSD Unix; the later System V versions of Unix from ATandT added many enhancements and new functions.
The curseslibrary also supports color on those terminals that provide it, The most common such terminal is probably the Linux console, followed by color xterms.
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 curseslibrary on the executing system takes care of sending the correct control characters to the monitor in use based on the terminal type.