crmsh/crmsh — pull request #8 by krig (2014-04-24 14:28:32+00:00)
Title: Fix garbage characters in prompt (issue#7)

When tab completion returns help text instead of completion,
the resulting re-printing of the prompt leaks readline escape codes
to the prompt. To avoid this, store prompt without color information
and handle the colorization separately for the help completion.