Set up word breaking to work correctly in terminal emulator