DEC Private Modes

D3-TUI supports VT220 DEC Private Modes via CSI ?{n}h (set) and CSI ?{n}l (reset):

Mode Name Description
1 DECCKM Cursor Keys Mode (Application/Cursor)
6 DECOM Origin Mode (Absolute/Relative)
7 DECAWM Auto Wrap Mode (enables line wrapping)
25 DECTCEM Text Cursor Enable Mode (show/hide cursor)

Use ANSI escape sequences to control modes:

// Enable auto wrap
d3tui_printf(term, "\x1B[?7h");

// Disable cursor
d3tui_printf(term, "\x1B[?25l");

// Set cursor keys to application mode
d3tui_printf(term, "\x1B[?1h");