[GHC] #4460: Input is not echoed when GHCi is suspended and subsequently brought to foreground.

GHC cvs-ghc at haskell.org
Fri Jan 7 14:48:27 CET 2011


#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 <marlowsd at gmail.com>
   * 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



More information about the Glasgow-haskell-bugs mailing list