Ticket #36 (closed defect: fixed)
Print prefix even when stdin is not a terminal
| Reported by: | judah | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Version: | 0.2.1 | Keywords: | |
| Cc: |
Description
If stdin is not a terminal, haskeline will not print the prefix. This can cause confusion during testing; in particular, see http://bugs.darcs.net/issue1050 .
We should always print the prefix. I think that's more commonly the right thing, and if a program dislikes that behavior it can use hIsTerminalDevice to decide whether to use a prefix or not.
Note as a corollary that we should make sure that echo is turned on in the above case (for the same ease of testing).
Change History
Note: See
TracTickets for help on using
tickets.
