[GHC] #11695: On GHCi prompt the arrow (movement) keys create strange character sequences

GHC ghc-devs at haskell.org
Mon May 30 17:41:42 UTC 2016


#11695: On GHCi prompt the arrow (movement) keys create strange character sequences
---------------------------------+--------------------------------------
        Reporter:  heisenbug     |                Owner:
            Type:  bug           |               Status:  infoneeded
        Priority:  normal        |            Milestone:
       Component:  GHCi          |              Version:  8.1
      Resolution:                |             Keywords:
Operating System:  Linux         |         Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+--------------------------------------

Comment (by heisenbug):

 Going via PC <-> VNC <-> hostA I sometimes see

 {{{
 "\ESC[B"
 "\ESC["
 "B"
 "\ESC[B"
 "\ESC"
 "[B"
 "\ESC[B"
 }}}

 The escape sequences seem to break up at strange places.

 Now the weird part. When going PC <-> hostA <-> hostB and opening an
 `xterm` there, and feeding `./Read` from there with keystrokes, I
 sometimes see duplicated escape sequences, but never the broken-up ones.
 Maybe this is just luck, but I really tried (even with considerable load
 on hostB). So maybe the X-Windows system is not the culprit at all.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11695#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list