make x-terminal-emulator wrapper more generic