Documentation ¶
Overview ¶
Shamelessly copied from the Terraform repo because it wasn't worth vendoring out two hundred lines of code so Packer could use it too.
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.
func Override ¶
Override overrides the values in readline.Config that need to be set with wrapped values.