Emojis in PS1 break formatting
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.1.2
- OS version: macOS 10.13
- Attach com.googlecode.iterm2.plist here (drag-drop from finder into this window)
Detailed steps to reproduce the problem:
- In your .bashrc or equivalent, add:
export PS1="🌀 \[\e[40m\]\W\[\e[0m\] \$ "
. - Type
ls
into a new console and press enter. - Use the up arrow to go through your history. Notice that a character will get stuck and you can't backspace it.
- Paste in the command
addi c /Users/addison/Code/mailbox.cpp < /Users/addison/Downloads/samples-9/mailbox.in
. You don't need to run it, just leave it in the prompt. - Try resizing the window. You'll see something like the following. Ouch.
What happened: I broke iTerm2 with emojis in my PS1. What should have happened: iTerm should support emojis.