[GHC] #2228: runghc screws up terminal buffering mode and doesn't reset it

GHC trac at galois.com
Mon Apr 28 06:34:12 EDT 2008


#2228: runghc screws up terminal buffering mode and doesn't reset it
--------------------+-------------------------------------------------------
 Reporter:  guest   |          Owner:          
     Type:  bug     |         Status:  new     
 Priority:  normal  |      Milestone:  6.8.3   
Component:  GHCi    |        Version:  6.8.2   
 Severity:  major   |     Resolution:          
 Keywords:          |     Difficulty:  Unknown 
 Testcase:          |   Architecture:  Multiple
       Os:  Linux   |  
--------------------+-------------------------------------------------------
Comment (by andersk):

 Is it possible that your shell is resetting icanon between the runghc and
 stty commands?  My shell is bash, but I just tried with zsh instead and
 got the same result you did.

 Try this instead:
 {{{
 stty -a
 sh -c "trap 'stty -a' INT; runghc cat.hs"
 }}}

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


More information about the Glasgow-haskell-bugs mailing list