Documentation
¶
Index ¶
- Constants
- type Command
- type CommandFunc
- type Shell
- func (s *Shell) Command(name string, desc string, fx CommandFunc)
- func (s *Shell) Help(args []string) error
- func (s *Shell) HexDump(buf []byte)
- func (s *Shell) Print(v ...interface{})
- func (s *Shell) Printf(format string, v ...interface{})
- func (s *Shell) Println(v ...interface{})
- func (s *Shell) Run()
- func (s *Shell) SetEcho(echo bool)
- func (s *Shell) SetIO(r io.Reader, w io.Writer)
- func (s *Shell) SetPrompt(prompt string)
Constants ¶
View Source
const ( VT100_UP = 65 VT100_DOWN = 66 VT100_RIGHT = 67 VT100_LEFT = 68 ASCII_TAB = 0x09 ASCII_CTRLC = 0x03 ASCII_CTRLD = 0x04 ASCII_BEL = 0x07 ASCII_BS = 0x08 ASCII_CR = 0x0D ASCII_LF = 0x0A ASCII_ESC = 0x1B ASCII_DEL = 0x7F )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandFunc ¶
type Shell ¶
func (*Shell) Print ¶
func (s *Shell) Print(v ...interface{})
Print sends output to the configured io.Writer Arguments are handled in the manner of fmt.Print.
func (*Shell) Printf ¶
Printf sends output to the configured io.Writer Arguments are handled in the manner of fmt.Printf.
func (*Shell) Println ¶
func (s *Shell) Println(v ...interface{})
Println sends output to the configured io.Writer Arguments are handled in the manner of fmt.Println.
func (*Shell) Run ¶
func (s *Shell) Run()
Run reads and writes from the io streams generating the command prompt and executing commands.
Click to show internal directories.
Click to hide internal directories.