Added terminal emulator stuff