What libraries are needed for graphics like vim or nano?

Which library is used to create a static terminal window such as vim, nano, irssi or aptitude, as opposed to a scroll terminal?

I use C, but I would be interested in libraries for other languages ​​(for example, a special library in C ++).

+6
c graphics
source share
4 answers

I believe the library you are looking for is Curses (or NCurses ). There is also PDCurses for cross-platform development (including Win32).

I also remember the days of Conio on DOS based systems.

+8
source share

Curses , like the library, are commonly used for this. pdcurses for Windows, most * nixes have their own version or, for example, ncurses

+2
source share

It will be ncurses .

+2
source share

You can also use the termcap (curses) library to search for terminal control strings for the terminal you are connected to, and send them yourself to implement whatever you like. Or, if you don't mind, if you need a modern terminal that supports at least a common subset of the ANSI / ECMA standard, you can simply hard-code the standard output screens.

+1
source share

All Articles