#4460: Input is not echoed when GHCi is suspended and subsequently brought to
foreground.
-------------------------------+--------------------------------------------
    Reporter:  manzyuk         |        Owner:  simonmar    
        Type:  bug             |       Status:  merge       
    Priority:  normal          |    Milestone:  7.0.2       
   Component:  GHCi            |      Version:  6.12.1      
    Keywords:  suspend         |     Testcase:              
   Blockedby:                  |   Difficulty:              
          Os:  Linux           |     Blocking:              
Architecture:  x86_64 (amd64)  |      Failure:  None/Unknown
-------------------------------+--------------------------------------------
Changes (by simonmar):

  * status:  new => merge


Comment:

 Fixed:

 {{{
 Fri Jan  7 12:40:42 GMT 2011  Simon Marlow <[email protected]>
   * catch SIGTSTP and save/restore terminal settings (#4460)
   As far as I can tell, it is the responsibility of the program to save
   and restore its own terminal settings across a suspend/foreground, the
   shell doesn't do it (which seems odd).  So I've added a signal handler
   for SIGTSTP to the RTS which will save and restore the terminal
   settings iff we modified them with hSetBuffering or hSetEcho (we
   already restore them at exit time in these cases).
 }}}

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to