Module: Ncurses::NCX

Included in:
Ncurses, Ncurses
Defined in:
lib/ffi-ncurses/ncurses.rb

Instance Method Summary collapse

Instance Method Details

#COLSObject



50
51
52
# File 'lib/ffi-ncurses/ncurses.rb', line 50

def COLS
  FFI::NCurses.getmaxx(FFI::NCurses.stdscr)
end

#has_colors?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/ffi-ncurses/ncurses.rb', line 58

def has_colors?
  FFI::NCurses.has_colors
end

#LINESObject



54
55
56
# File 'lib/ffi-ncurses/ncurses.rb', line 54

def LINES
  FFI::NCurses.getmaxy(FFI::NCurses.stdscr)
end