
#9364: GHCi (or haskeline?) confused by non-single-width characters -------------------------------------+------------------------------------- Reporter: cheater | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.8.3 Resolution: | Keywords: linux, | terminal, colour, color, prompt Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #5850 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by cheater): Evan Laforge brought up the following fix on ghc-dev: ------------ Here's what I use: :set prompt "\ESC[46m\STX%s>\ESC[39;49m\STX " I believe \STX is a signal to haskeline for control sequences. Documentation is here: https://github.com/judah/haskeline/wiki/ControlSequencesInPrompt -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9364#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler