C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
Ui_ncurses

NCurses UI backend — lifecycle, surface management, and capabilities. More...

Collaboration diagram for Ui_ncurses:

Files

file  ui_ncurses.c
 NCurses UI backend — lifecycle, surface management, and capabilities.
file  ui_ncurses_compat.h
 Non-portable escape hatch for the NCurses backend.
file  ui_ncurses_draw.c
 NCurses UI backend — drawing functions.
file  ui_ncurses_input.c
 NCurses UI backend — input handling.
file  ui_ncurses_internal.h
 Internal header for the NCurses UI backend.

Functions

UiBackend ui_get_backend ()
 Get the UI backend type.

Detailed Description

NCurses UI backend — lifecycle, surface management, and capabilities.

Implements all UiRuntime and UiSurface operations declared in ui_backend.h using the NCurses / panelw library.

When compiled as part of the main C-Menu build (UAL_LEGACY_COMPAT defined), the legacy globals screen and tty_fp from dwin.c are kept in sync so that code not yet migrated to the UAL API continues to work.

Function Documentation

◆ ui_get_backend()

UiBackend ui_get_backend ( )

Get the UI backend type.

Returns
The UI backend type, which is always UI_BACKEND_NCURSES for this implementation.

Definition at line 55 of file ui_ncurses.c.

55 {
56 return UI_BACKEND_NCURSES;
57}
@ UI_BACKEND_NCURSES
Definition ui_backend.h:452