Documentation ¶
Index ¶
- Constants
- func InputLoop(inst *Instance)
- func ReadPassword(fd int) ([]byte, error)
- type Completer
- type ExecuteFunc
- type Instance
- func (inst *Instance) Destroy()
- func (inst *Instance) Error(v ...interface{})
- func (inst *Instance) Errorf(format string, v ...interface{})
- func (inst *Instance) Log(format string, v ...interface{})
- func (inst *Instance) Print(v ...interface{})
- func (inst *Instance) PrintTree(w io.Writer)
- func (inst *Instance) Printf(format string, v ...interface{})
- func (inst *Instance) Println(v ...interface{})
- func (inst *Instance) SetCompleter(subs ...Completer)
- func (inst *Instance) SetExecute(f ExecuteFunc, data interface{})
- type State
Constants ¶
View Source
const ( CharInterrupt = 3 // Ctrl+C CharEOF = 4 // Ctrl+D CharTab = '\t' // 9 CharEnter = '\r' // 13 or 10('\n') CharESC = 27 // ansi escape code CharBackspace = 127 )
Variables ¶
This section is empty.
Functions ¶
func ReadPassword ¶
ReadPassword reads a line of input from a terminal without local echo. This is commonly used for inputting passwords and other sensitive data. The slice returned does not include the \n.
Types ¶
type ExecuteFunc ¶
type Instance ¶
type Instance struct { Debug bool // contains filtered or unexported fields }
func (*Instance) SetCompleter ¶
func (*Instance) SetExecute ¶
func (inst *Instance) SetExecute(f ExecuteFunc, data interface{})
Source Files ¶
Click to show internal directories.
Click to hide internal directories.