What is curses? - Definition from WhatIs.com
Part of the Programming glossary:

In C programming, curses is a collection of precompiled routine s stored as object s for text-based terminals that is used to create similarity of function. Curses probably gets its name from its purpose of providing a common user interface for terminal-specific initiation of cursor movement.

Terminals frequently use different ways to initiate particular cursor movements. For example, to make the cursor move up a line, a VT100 terminal has to send the characters "Esc," "]" and "A," while a Televideo 920C terminal has to send "CTRL-K." This could get terribly complicated if programmers had to write separate versions for every terminal. Another problem is that the same tasks would have to be redone every time a program that depended on cursor action was written. The curses library contains function s that a program calls to send the desired cursor action characters. The program doesn't have to contain information about the proper characters but just uses a simple-to-understand syntax (e.g.: "clear()" will clear the screen).

Curses hides the particular screen details of different terminals from the programmer, who sees a display containing multiple non-overlapping windows. Window contents can be changed in a fairly straight-forward manner and the curses library will be behind the scenes, working away doing whatever is necessary to get the desired message through - with the least possible stress to the programmer. The ncurses (new curses) library is a freely distributable replacement for the discontinued 4.4BSD classic curses library.

This was last updated in August 2009
Posted by: Margaret Rouse

Related Terms



  • Programming

    - Terms related to software programming, including definitions about programming languages and words and phrases about software design, coding, testing and debugging.

  • Internet applications

    - This WhatIs.com glossary contains terms related to Internet applications, including definitions about Software as a Service (SaaS) delivery models and words and phrases about web sites, e-commerce ...

Ask a Question. Find an Answer.Powered by ITKnowledgeExchange.com

Ask An IT Question

Get answers from your peers on your most technical challenges

Ask Question
  • What is the future of my career?

    By switching development you would put all of your knowledge and experience to waste. Also as you are 36 you will have had to studied the other development. Because you can't just s...

  • Future of AS400 ??

    The medium format at IBM is a cash cow. RPG as well. They will be around for a while. The as400 is now i5. IBM has embraced this platform as an internet solution. Jack

  • Cannot Manipulate Files--Permissions

    If you have removed his account and recreated then re-applied rights on server then you good there. but have you tried to dis-join his system from the domain? Dis-join his system, and make sure com...

Tech TalkComment



    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.