module TermCanvas
Constants
- VERSION
Public Class Methods
close()
click to toggle source
Close.
# File lib/term_canvas.rb, line 16 def self.close Curses.close_screen end
gets()
click to toggle source
Get key input. @return [String] Inputted key. @return [nil]
# File lib/term_canvas.rb, line 11 def self.gets Curses.getch end
height()
click to toggle source
@return [Integer] Height of this screen.
# File lib/term_canvas.rb, line 27 def self.height TermCanvas::BaseScreen.instance Curses.lines end
update()
click to toggle source
Update objects to physical screen.
# File lib/term_canvas.rb, line 33 def self.update TermCanvas::BaseScreen.instance Curses.doupdate end
width()
click to toggle source
@return [Integer] Width of this screen.
# File lib/term_canvas.rb, line 21 def self.width TermCanvas::BaseScreen.instance Curses.cols end