Closed itchyny closed 4 years ago
I consider liner "done" at this point. Someone (maybe you?) should fork liner if a library with more features (and more dependencies, and more API surface) is desired.
I consider liner "done" at this point. Someone (maybe you?) should fork liner if a library with more features (and more dependencies, and more API surface) is desired.
Okay, thank you for review and the library.
Currently liner changes the behavior based on redirections. This is sometimes useful to support both terminal input and pipe input, but is troublesome when I want to use always from terminal. I want to accept user's input from tty without breaking both stdin and stdout. This pull request introduces new function NewLinerTTY for connecting both input and output to tty so that we can use liner regardless of the redirections. Note that months ago I submitted #121 however this was insufficient.