How paxy484/paxcurses works
PaxCurses is a compact curses-compatible library. Applications use its ncurses-like API to manage windows, draw text, handle input, and refresh terminal views; it also provides pads, wide-character drawing, and dynamic scrollback. The excerpts show core window, rendering, and input behavior, while the README documents Win32, DOS, and POSIX support. Several features share one implementation file, so nodes represent runtime responsibilities rather than separate modules.
Main entry points: paxcurses.c Window Canvas · paxcurses.h Curses API
Components 10
Public Interface
- Curses API
paxcurses.h
Window and Canvas
- Screen Lifecycle
paxcurses.c - Window Canvas
paxcurses.c - Scrollback
paxcurses.c - Pads
paxcurses.c - Text and Attributes
paxcurses.c
Terminal I/O
- Viewport Rendering
paxcurses.c - Keyboard Input
paxcurses.c - Terminal I/O
Other components
- Application
Connections 9
- Application → Curses API: calls
README.md - Curses API → Screen Lifecycle: exposes
paxcurses.h - Screen Lifecycle → Terminal I/O: configures
paxcurses.c - Text and Attributes → Window Canvas: writes cells
paxcurses.c - Scrollback → Window Canvas: resizes buffer
paxcurses.c - Pads → Window Canvas: allocates buffer
paxcurses.c - Viewport Rendering → Window Canvas: reads cells
paxcurses.c - Viewport Rendering → Terminal I/O: renders to
paxcurses.c - Keyboard Input → Terminal I/O: reads keys
paxcurses.c