• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » What is ncurses?

By Abhishek Ghosh September 16, 2023 6:14 pm Updated on September 16, 2023

What is ncurses?

Advertisement

ncurses (New curses) is a free library providing an API for the development of user interfaces with drop-down menus, using the characters and colors of a semi-graphical mode. Not only is this type of user interface designed independently of the terminal, but it speeds up screen refresh, thereby reducing the latency typically experienced by remote shell users (Read Text User Interface, TUI).

We face ncurses library mainly in C++ and C. Many programming languages today include a link to this library: Python, Ruby, PHP, JavaScript, Perl and so on.

The first semi-graphic library, curses, was programmed around 1980 at the University of Berkeley for the port of the game Rogue to Unix BSD. It used the termcap library, itself developed for the vi line editor.

Advertisement

---

Given the reception given to BSD curses, Bell Labs decided to include it in version 2 of Unix System V, with some improvements and using terminfo, a faster access database, instead of termcap; however, given AT&T’s restrictive policy on rights protection, this improved version of curses was less successful than the first. Around 1982, Pavel Curtis began to develop a free clone, pcurses, which was maintained by several users until 1986. Ncurses is a free simulation of the classic 4.4BSD implementation of curses, whose evolution is now stopped.

What is ncurses

In the early 1990s, Zeyd Ben Halim and Eric Raymond continued the development of pcurses and called it ncurses, which is now predominantly in use. Thomas Dickey joined the project in 1995 and has been the lead developer since 1996. This is the official website of Thomas Dickey for ncurses project:

Vim
1
2
https://invisible-island.net/ncurses/ncurses.faq.html
https://github.com/ThomasDickey/ncurses-snapshots

There are many programs which use ncurses. GNU Screen and w3m, use only the termcap interface and perform screen management themselves. Lynx, GNU Midnight Commander and YaST, use the curses programming interface.

This is an example of Hello World program in C++ using ncurses:

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include
using namespace std;
 
int main(int argc, char ** argv)
{
    // init screen and sets up screen
    initscr();
 
    // print to screen
    printw("Hello World");
 
    // refreshes the screen
    refresh();
 
    // pause
    getch();
 
    // ends ncurses
    endwin();
    return 0;
}

You can read these two articles which are related to ncurses:

  1. List of Command Line Music Players For Mac, Linux
  2. How To Build Colorful Command Line TUI For Shell Scripts
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is ncurses?

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • OpenShift OctoPress Auto install Script

    OpenShift OctoPress Auto install Script is an Advanced Script to Run OctoPress on Free OpenShift PaaS Practically Without Any Knowing Ruby or Git.

  • OpenStack Swift & HPCloud CDN PHP Bindings : Basics

    Here is the basics of OpenStack Swift & HPCloud CDN PHP Bindings for the WordPress Plugin developers and those who works with PHP based CMS.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is a Digital-to-Analog Converter (DAC)September 25, 2023
  • Tips on S Pen Air ActionsSeptember 24, 2023
  • Market Segmentation in BriefSeptember 20, 2023
  • What is Booting?September 18, 2023
  • What is ncurses?September 16, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy