Changing timing on the examples
[nfoiled.git] / examples / initialization.rb
bloba5768a3341461a7f71adebdc9a0016218e73ccc2
1 ($:.unshift File.expand_path(File.join( File.dirname(__FILE__), '..', 'lib' ))).uniq!
2 require 'nfoiled'
4 ##
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 # A call to `Nfoiled::initialize` will, basically, do everything for us. Many
10 # other initialization methods actually call this for us anyway, so we could
11 # even just jump right in and instantiate a window if we so desired.
12 Nfoiled::initialize
14 # The only thing left to do is update the display, to actually cause it to
15 # display!
16 ::Ncurses.doupdate
18 sleep 5