Module: ICurses
- Includes:
- Curses, Ncurses
- Defined in:
- lib/ektoplayer/ui.rb,
lib/ektoplayer/icurses/sugar.rb,
lib/ektoplayer/icurses/sugar.rb,
lib/ektoplayer/icurses/curses.rb,
lib/ektoplayer/icurses/ncurses.rb
Defined Under Namespace
Classes: IMouseEvent, IWindow
Class Method Summary
collapse
Methods included from Curses
endwin
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *a) ⇒ Object
55
56
57
58
59
|
# File 'lib/ektoplayer/icurses/ncurses.rb', line 55
def method_missing(m, *a)
Ncurses.send(m, *a)
rescue NoMethodError
Ncurses.send(m.downcase, *a)
end
|
Class Method Details
.getmouse(mevent = nil) ⇒ Object
61
62
63
64
65
|
# File 'lib/ektoplayer/icurses/curses.rb', line 61
def getmouse(mevent=nil)
if mevent = Curses.getmouse()
return IMouseEvent.new(mevent)
end
end
|
.initscr ⇒ Object
62
|
# File 'lib/ektoplayer/icurses/ncurses.rb', line 62
def initscr; end
|
.method_missing(m, *a) ⇒ Object
55
56
57
58
59
|
# File 'lib/ektoplayer/icurses/ncurses.rb', line 55
def method_missing(m, *a)
Ncurses.send(m, *a)
rescue NoMethodError
Ncurses.send(m.downcase, *a)
end
|
.mousemask(mask, *_) ⇒ Object
58
|
# File 'lib/ektoplayer/icurses/curses.rb', line 58
def mousemask(mask, *a); Curses.mousemask(mask) end
|
.newpad(*a) ⇒ Object
75
76
77
|
# File 'lib/ektoplayer/icurses/ncurses.rb', line 75
def newpad(*a)
ICurses::IWindow.new( Ncurses.newpad(*a) )
end
|
.newwin(*a) ⇒ Object
70
71
72
|
# File 'lib/ektoplayer/icurses/ncurses.rb', line 70
def newwin(*a)
ICurses::IWindow.new( Ncurses.newwin(*a) )
end
|
.stdscr ⇒ Object
65
66
67
|
# File 'lib/ektoplayer/icurses/ncurses.rb', line 65
def stdscr
ICurses::IWindow.new( Ncurses.stdscr )
end
|