[GHC] #2172: ghci / ghc -e outputs terminal escapes even when
redirected to file/pipe
GHC
trac at galois.com
Sun Mar 23 11:05:06 EDT 2008
#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
More information about the Glasgow-haskell-bugs
mailing list