Documentation ¶
Overview ¶
STOLEN SHAMELESSLY FROM THE TERRAFORM REPO BECAUSE VENDORING OUT WRAPPEDREADLINE AND WRAPPEDSTREAMS FELT LIKE TOO MUCH WORK.
"a little copying is better than a lot of dependency"
wrappedreadline is a package that has helpers for interacting with readline from a panicwrap executable.
panicwrap overrides the standard file descriptors so that the child process no longer looks like a TTY. The helpers here access the extra file descriptors passed by panicwrap to fix that.
panicwrap should be checked for with panicwrap.Wrapped before using this librar, since this library won't adapt if the binary is not wrapped.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
func IsTerminal() bool
IsTerminal determines if this process is attached to a TTY.