Class: Milktea::Program
- Inherits:
-
Object
- Object
- Milktea::Program
- Extended by:
- Forwardable
- Defined in:
- lib/milktea/program.rb
Overview
Main program class for running Milktea TUI applications
Constant Summary collapse
- FPS =
60
- REFRESH_INTERVAL =
1.0 / FPS
Instance Method Summary collapse
-
#initialize(model, config: nil) ⇒ Program
constructor
A new instance of Program.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/milktea/program.rb', line 28 def run start setup_screen render(@model) setup_timers @timers.wait while running? ensure restore_screen end |