Make an Animated Christmas Card with Curses

Опубликовано: 13 Декабрь 2023
на канале: Utah Cpp Programmers
177
5

Curses is a library for screen oriented text applications. Curses is essentially a window like user interface for text screens. When Bill Joy wrote vi, he wrote some code to optimize repainting the terminal screen and positioning the cursor. This code was borrowed and extended by Kenneth Arnold to create the general-purpose library curses for programming on text terminals.

This month, Richard Thomson will give us an introduction to programming with curses, using the ncurses library on linux and the pdcurses library on Windows. Some of the topics to be covered are:

Obtaining the library via vcpkg
Basic screen output with curses
Setting character attributes with curses
Obtaining input with curses
Drawing simple animations with curses

Curses: https://en.wikipedia.org/wiki/Curses_...)
ncurses: https://invisible-island.net/ncurses/
pdcurses: https://pdcurses.org/

Example code: https://github.com/LegalizeAdulthood/...