curses

from Wikipedia, the free encyclopedia

curses is the name of various program libraries for displaying character-oriented user interfaces (Text User Interface, TUI) regardless of the displaying text terminal or terminal emulator .

First there was an implementation of the Berkeley Software Distribution (BSD) 4.4, which was followed by a further development for Release 4 of System V in 1989 . In the early 1990s, the GNU project developed a free implementation called ncurses based on this model , which is predominantly in use today. Other further developments are the Public Domain Curses (PDCurses) started in 1987 by Mark Hessling and pcurses (1982) by Pavel Curtis. There is a standard from X / Open that is extremely close to the System V implementation.

Sample program

Simple hello world program with curses:

#include <curses.h>
int main(void)
{
  initscr();

  printw("Hallo Welt!");

  refresh();
  getch();
  endwin();
  return 0;
}

literature

  • John Strang: Programming with curses . O'Reilly & Associates, Sebastopol CA 1986, ISBN 978-0-937175-02-6 (UNIX C library for screen manipulation. A Nutshell handbook).

Web links

Individual evidence

  1. pdcurses.sf.net