Initial checkin, Terminal example from Qt 5.2