Ncurses: Difference between revisions

From wikinotes
No edit summary
 
 
Line 14: Line 14:
<blockquote>
<blockquote>
{| class="wikitable"
{| class="wikitable"
|-
| TLDP: Ncurses howto || http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
| TLDP: Ncurses howto || http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
|-
| ncurses tutorial || https://invisible-island.net/ncurses/ncurses-intro.html
|-
|}
|}
</blockquote><!-- tutorials -->
</blockquote><!-- tutorials -->


= First Program =
= First Program =

Latest revision as of 22:22, 30 August 2021

Ncurses is a library for creating GUIs within a terminal. Or TUIs rather. It is extended from AT&T's curses library that was written in the mid 70s.

NOTE:

I have covered the curses library more extensively in python curses .

Documentation

Tutorials

TLDP: Ncurses howto http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
ncurses tutorial https://invisible-island.net/ncurses/ncurses-intro.html

First Program

//// /home/will/dev/ncurses.cpp
#include <ncurses.h>

int main() {
	initscr();
	printw("Hello World");
	refresh();
	getch();
	endwin();
}
////
gcc -lncurses ncurses.cpp				## Compile
./a.out										## run the curses program