1 ($:.unshift File.expand_path(File.join( File.dirname(__FILE__), '..', 'lib' ))).uniq!
5 # This example provides a simple example of setting up an Ncurses interface,
6 # and then tearing it down. Nothing will be observed other than the clearing
7 # of the terminal for 10 seconds.
9 # First, we need to ensure that Ncurses will exit cleanly (that is, we don't
10 # want an interrupt or fatal error to screw up the terminal output after the
14 # Second, the actual initialization of Ncurses. This allocates the necessary
15 # memory and initializes all variables.
16 ::Ncurses.newterm(nil, STDOUT, STDIN)
18 # Finally, we have to update the display. This preforms the actual clearing of