Added a terminal for use in PyQt programs