
By any chance are you using tmux or a similar program? If so, check out
#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:4 judahj]: the instructions here (your symptoms sound similar):
No `tmux`. My terminal is a simple `xterm`. There are 3 computers involved: * a windows laptop visualizing a VNC session (by RealVNC) * a linux machine (say, `hostA`) running `vncserver` * another linux server on which I am `slogin`-ed named `hostB`. `hostB` runs `ghci` and has `export DISPLAY=hostA:2` in effect. So all X visuals are being painted into the `vncserver` session.
Otherwise, can you give a little more information about your setup? - What is the value of $TERM - What terminal program (e.g. xterm) you're using - To try to figure out exactly what's confusing ghci: can you explain
more what "$DISPLAY is a vnc session on a different box" means? I'm not familiar with that kind of setup. Which machine are you actually typing text into, and how is that text being relayed to the server that's actually running ghci? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11695#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler