#2172: ghci / ghc -e outputs terminal escapes even when redirected to file/pipe
----------------------------------------------------------+-----------------
    Reporter:  guest                                      |       Owner:        
 
        Type:  bug                                        |      Status:  new   
 
    Priority:  normal                                     |   Component:  GHCi  
 
     Version:  6.8.2                                      |    Severity:  
normal 
    Keywords:  terminal escape sequences non-interactive  |    Testcase:        
 
Architecture:  Unknown                                    |          Os:  
Unknown
----------------------------------------------------------+-----------------
 When running the interpreter (ghc --interactive, ghc -e, or runhaskell)
 with stdout redirected to a file, pipe, or other non-tty, ghc sends some
 terminal initialization sequences.  This can be reproduced in a KDE
 konsole window:  ``ghc -e 'putStrLn "hi" >file'' will write an extraneous
 <escape>[?1034h to the file.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2172>
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