Initialize a TestTty instance. Only a single TestTty instance can be bound at a time, and only when a Tty is not also bound. Subsequent calls will throw an exception until TestTty.close is called.