Helper scripts for terminal emulator