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

GHC ghc-devs at haskell.org
Thu Mar 17 08:09:40 UTC 2016


#11695: On GHCi prompt the arrow (movement) keys create strange character sequences
---------------------------------+--------------------------------------
        Reporter:  heisenbug     |                Owner:
            Type:  bug           |               Status:  new
        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):

 Replying to [comment:6 judahj]:
 > Thanks for the details.  To clarify, what machine are you slogin'd
 *from* into hostB, is it your laptop or hostA?  If your laptop, what
 Windows program are you using to do the connection?

 It is not the laptop. The keystroke/mousing/visualization chain is:
 {{{
 laptop <--vnc--> hostA <--ssh--> hostB
 }}}


 >
 > (More details: I'm trying to reason about the chain of events from you
 pressing your key to it getting received by gghci as the character
 sequence "\ESC[A" (or similar).  The problem is that ghci (really,
 haskeline) expects to read those characters in a single block, but in your
 setup they're arriving separately for some reason.)

 So `ghci` actually utilizes `haskeline`? I heard something to the contrary
 before.

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


More information about the ghc-tickets mailing list