From the course: Exploring C Libraries

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Building an ncurses program

Building an ncurses program - C Tutorial

From the course: Exploring C Libraries

Start my 1-month free trial

Building an ncurses program

- [Instructor] NCurses is a C language library that provides direct manipulation of the terminal window text screen, as well as keyboard input. If you've ever used a full-screen program in a terminal window, such as the vi editor, it was most likely created by using NCurses. The library you want to install in your terminal window package manager is libx32ncurses5-dev. Now on the Mac, the brew formula is simply NCurses. This library works only in the Unix shell environment. In Windows, you can run NCurses programs in the Ubuntu Linux terminal. Or if you use the Cygwin environment, you can run NCurses programs there as well. Once installed, you can compile and link this exercise file to confirm the NCurses installation. The sample code shows the ncurses.h header file, included at line two, which defines the string constant NCURSES_VERSION output at line six. To compile the code, type your compiler name, I prefer clang,…

Contents