-
Notifications
You must be signed in to change notification settings - Fork 370
Open
Labels
Description
Feature Request
Right now it appears like go-prompt only works with STDIN. In order to run it on a console port, I currently use SystemD to perform STDIN redirection and a few other hacks (set windows size etc.). I think I could replace systemd with syscall.Dup2 but I don't have time to experiment much more.
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/...
Anyhow if you can confirm that:
- there is not nicer way to do this
- that adding a parameter
TTY *os.Fileparameter toOptionswould be a good way forgo-promptto accept an external TTY
then I'll work on a PR
Reactions are currently unavailable