Class: Amaterasu::HAL::Console
- Inherits:
-
Object
- Object
- Amaterasu::HAL::Console
- Defined in:
- lib/amaterasu/hal/console.rb
Overview
Console display renderer.
Constant Summary collapse
- LCD_WIDTH =
160- LCD_HEIGHT =
144- DOUBLE_CHAR =
'▀'- CONSOLE_CHARS =
[' ', '░', '▒', '█'].freeze
Instance Method Summary collapse
-
#initialize ⇒ Console
constructor
CONSOLE_CHARS = [‘ ’, ‘:’, ‘#’, ‘@’].freeze.
- #shutdown ⇒ Object
Constructor Details
#initialize ⇒ Console
CONSOLE_CHARS = [‘ ’, ‘:’, ‘#’, ‘@’].freeze
14 15 16 |
# File 'lib/amaterasu/hal/console.rb', line 14 def initialize $stdout.print("\e[?1049h") end |
Instance Method Details
#shutdown ⇒ Object
18 19 20 |
# File 'lib/amaterasu/hal/console.rb', line 18 def shutdown $stdout.print("\e[?1049l") end |