Search code examples
bashgnuncursescursesiterm

iterm gnu bash visual corruption


When i paste a command in to bash and hit enter, the next lines prompt contains half of the previous issued command. E.G:

host:/Users/user $ some really long command pasted in

-bash: some: command not found

host:/Users/user $ some really command pasFoo

-bash: Foo: command not found

i typed Foo at the next prompt and hit enter. You can see that it only recognized the Foo command so the visual of the previous command is 'not really there'


Solution

  • Does your prompt contain colors? If so, tell bash what's printable and what isn't, and it should correctly wrap your lines.