class C

Constants

ESC
SPACE

Public Class Methods

new(args = {}) { |self| ... } click to toggle source
# File lib/cless/display.rb, line 95
def initialize(args = {})
  Ncurses.initscr
  @started = true
  begin
    Ncurses.start_color
    Ncurses.cbreak
    Ncurses.noecho
    Ncurses.nonl
    Ncurses.stdscr.intrflush(false)
    Ncurses.stdscr.immedok(false)
    Ncurses.keypad(Ncurses.stdscr, true)


    yield self
  ensure
    @started && Ncurses.endwin
  end
end