ghci / ghc -e outputs terminal escapes even when redirected to file/pipe
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.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |