Sha256: 26ec7aaedad5f4a7a3c898fcc1c2f4442ec5341a82517f8fb18f0dcfe2cabca5
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
require "curses" include Curses module PPCurses class Screen def run( ) begin init_screen Curses.raw clear curs_set(0) # Makes cursor invisible noecho cbreak start_color yield rescue SystemExit, Interrupt # Empty Catch block so ruby doesn't puke out # a stack trace when CTRL-C is used ensure #close_screen end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ppcurses-0.0.8 | lib/ppcurses/Screen.rb |
ppcurses-0.0.7 | lib/ppcurses/Screen.rb |