[haskeline] #78: control characters in prompt mess up width calculations
haskeline
haskeline at projects.haskell.org
Fri Aug 14 05:59:45 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 phercek):
I use ANSI escape sequences for coloring and this seems to work in simple
cases. But it is incorrect when I search history. I would like to see this
working well.
How can one compute the length of control codes in general?
If there is no general rule then maybe the used sequences of control codes
can be defined in .haskeline. Each sequence would have defined there how
much space it takes on the terminal. This would make it compatible with
windows users (which just would not define any sequence).
--
Ticket URL: <http://trac.haskell.org/haskeline/ticket/78#comment:1>
haskeline <http://example.org/>
My example project
More information about the Haskeline
mailing list