Module: Zgomot::UI::Utils
- Included in:
- ErrorWindow, TableCellWindow, TableRowWindow, TextWindow, TextWithValueWindow, TitleWindow
- Defined in:
- lib/zgomot/ui/windows.rb
Instance Method Summary collapse
Instance Method Details
#set_color(color, &blk) ⇒ Object
32 33 34 |
# File 'lib/zgomot/ui/windows.rb', line 32 def set_color(color, &blk) Curses.attron(Curses.color_pair(color)|Curses::A_NORMAL, &blk) end |
#write(y, x, str) ⇒ Object
35 36 37 38 |
# File 'lib/zgomot/ui/windows.rb', line 35 def write(y, x, str) Curses.setpos(y, x) Curses.addstr(str) end |