[haskeline] #78: control characters in prompt mess up width calculations
haskeline
haskeline at projects.haskell.org
Fri Aug 14 18:30:27 EDT 2009
#78: control characters in prompt mess up width calculations
-------------------+--------------------------------------------------------
Reporter: judah | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Version: 0.6 | Resolution:
Keywords: |
-------------------+--------------------------------------------------------
Comment (by judah):
In general, any escape sequence for bold or color should have zero length
in the terminal.
In bash, to signify that a control sequence in the prompt has zero width
you surround it with `\[` and `\]`. In readline itself, you surround it
with `\001` and `\002`. Maybe it would be easiest for Haskeline to do
something similar?
--
Ticket URL: <http://trac.haskell.org/haskeline/ticket/78#comment:2>
haskeline <http://example.org/>
My example project
More information about the Haskeline
mailing list