Commit a31d07b
committed
feat(console): Add simplified unified API and TableMenu
New Simplified API:
- Menu() - Unified menu (3 overloads, replaces 3 different functions)
- Table() - Auto-sizing tables (2 overloads)
- TableMenu() - Interactive table with row selection (NEW!)
- Box() - Auto-positioning boxes (3 overloads)
- Progress() - Interface-based progress with auto-cleanup
- Confirm() - Yes/no prompts (2 overloads)
- Choose() - Quick single choice
Features:
- Progressive overloads (simple by default, add params when needed)
- Auto-cleanup via interfaces (IProgress)
- Consistent theming via ConsoleTheme
- All functions respect ConsoleTheme settings
Bug Fixes:
- Fixed table borders using wrong color (cells vs borders)
- Fixed inline variable declarations for older Delphi versions
Documentation:
- Added CONSOLE_SIMPLIFIED_API.md with complete guide
- Updated ConsoleDemo with all new API examples
- All comments in English
Breaking Changes: None (100% backward compatible)1 parent d59646c commit a31d07b
File tree
3 files changed
+1188
-152
lines changed- samples/console_sample
- sources
3 files changed
+1188
-152
lines changed
0 commit comments