3 # A `Terminal` is a specific set of Nfoiled windows and configuration. In
4 # the vast majority of cases, you only need one of these, and that one will
5 # be created for you by `Nfoiled::initialize`. A general user shouldn't need
6 # to deal with `Terminal` at all.
10 @terminals = Array.new
11 attr_reader :terminals
15 # Responsible for creating a new `Terminal`. See `newterm(3X)`.
16 def initialize opts = Hash.new
17 { :out => STDOUT, :in => STDIN }.merge opts
18 t = ::Ncurses.newterm(opts[:term], opts[:out], opts[:in])