Class: Ncurses::IWindow
- Inherits:
-
Object
- Object
- Ncurses::IWindow
- Defined in:
- lib/ektoplayer/icurses/ncurses.rb
Instance Method Summary collapse
-
#attrset(attributes) ⇒ Object
FIX: ‘attrset’ in ncurses seems broken?.
- #getch ⇒ Object
-
#initialize(w) ⇒ IWindow
constructor
A new instance of IWindow.
Constructor Details
#initialize(w) ⇒ IWindow
Returns a new instance of IWindow.
7 8 9 |
# File 'lib/ektoplayer/icurses/ncurses.rb', line 7 def initialize(w) @w = w end |
Instance Method Details
#attrset(attributes) ⇒ Object
FIX: ‘attrset’ in ncurses seems broken?
43 44 45 46 47 |
# File 'lib/ektoplayer/icurses/ncurses.rb', line 43 def attrset(attributes) Ncurses.send(:wattr_get, @w, old_a=[], old_c=[], nil) Ncurses.send(:wattroff, @w, old_a[0] | old_c[0]) Ncurses.send(:wattron, @w, attributes) end |