Skip to main content

Module tui

Module tui 

Source
Expand description

TUI Frontend for Calculator

Probar: Visual feedback - Visual feedback through terminal interface

Structs§

CalculatorApp
Calculator application state
InputHandler
Input handler that maps key events to actions
Keypad
The keypad layout - a 5x4 grid of buttons
KeypadButton
A single keypad button
KeypadWidget
Keypad widget for rendering
Rect
A rectangle for layout/hit-testing (u16 coordinates, terminal cells).
TextBuffer
A simple text buffer for TUI rendering (replaces ratatui::Buffer).

Enums§

ButtonAction
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