1 ($:.unshift File.expand_path(File.join( File.dirname(__FILE__), '..', 'lib' ))).uniq!
5 # This example deals with utilizing multiple `Terminal` instances in Nfoiled.
7 # Creating our first `Terminal` will take care of initializing the Nfoiled
9 term1 = Nfoiled::Terminal.new
11 # Rembmer that creating a new `Terminal` also activates it, so `term1` is
15 # Let's print some content to show that the terminal exists.
16 term1_win = Nfoiled::Window.new
17 term1_win.print "This appears in `term1`."
22 # Now let's switch to `term2`.
23 # TODO: Figure out why this prints a slew of constant re-definition warnings.
24 term2 = Nfoiled::Terminal.new
27 # Let's print some content to show that the terminal exists.
28 term2_win = Nfoiled::Window.new
29 term2_win.print "This appears in `term2`."
34 # Finally, let's switch back to `term1` to show that it, also, still exists.
35 # TODO: Figure out why this doesn't work.