Expand description
TUI Frontend for Calculator
Probar: Visual feedback - Visual feedback through terminal interface
Structs§
- Calculator
App - Calculator application state
- Input
Handler - Input handler that maps key events to actions
- Keypad
- The keypad layout - a 5x4 grid of buttons
- Keypad
Button - A single keypad button
- Keypad
Widget - Keypad widget for rendering
- Rect
- A rectangle for layout/hit-testing (u16 coordinates, terminal cells).
- Text
Buffer - A simple text buffer for TUI rendering (replaces ratatui::Buffer).
Enums§
- Button
Action - Actions that keypad buttons can perform
- KeyAction
- Actions that can be triggered by keyboard input
Functions§
- render_
to_ buffer - Renders the calculator UI into a TextBuffer