peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.04k stars 132 forks source link

Feature request: Add some support for "non interactive" client #32

Closed raff closed 9 years ago

raff commented 9 years ago

I tried to redirect the output of my application to a file and I got an error "standard output is not a terminal" (errNotTerminalOutput) from Prompt()

A couple of options:

Thanks! -- Raffaele

peterh commented 9 years ago

Good point.

I think the behaviour should be:

Does that sound correct to you?