Documentation ¶
Index ¶
- Constants
- func Execute(ctx command.ConfContext, line string, isLine, history bool, c *Client)
- func InputLoop(s *Server, c *Client, notifyAppInputClosed bool)
- func ListenTelnet(addr string, cliServer *Server)
- func OutputLoop(c *Client)
- type Client
- func (c *Client) ConfigPath() string
- func (c *Client) ConfigPathSet(path string)
- func (c *Client) DiscardOutputQueue()
- func (c *Client) Echo() bool
- func (c *Client) EchoDisable()
- func (c *Client) EchoEnable()
- func (c *Client) Flush()
- func (c *Client) HistoryAdd(cmd string)
- func (c *Client) HistoryNext() string
- func (c *Client) HistoryPrevious() string
- func (c *Client) HistoryReset()
- func (c *Client) HistoryShow()
- func (c *Client) InputQuit()
- func (c *Client) LineBufferComplete(autoComplete string, attach bool)
- func (c *Client) Newline()
- func (c *Client) Output() chan<- string
- func (c *Client) RedrawLineBuffer()
- func (c *Client) Send(msg string) int
- func (c *Client) SendEveryChar() bool
- func (c *Client) SendNow(msg string)
- func (c *Client) SendPrompt(host string, paging bool)
- func (c *Client) SendQueue() bool
- func (c *Client) Sendln(msg string) int
- func (c *Client) SendlnNow(msg string)
- func (c *Client) SetSendEveryChar(mode bool)
- func (c *Client) Status() int
- func (c *Client) StatusConf()
- func (c *Client) StatusEnable()
- func (c *Client) StatusExit()
- func (c *Client) StatusSet(status int)
- func (c *Client) TermSize() (int, int)
- func (c *Client) TermSizeSet(w, h int)
- func (c *Client) Username() string
- func (c *Client) UsernameSet(username string)
- type Command
- type Server
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ListenTelnet ¶
func OutputLoop ¶
func OutputLoop(c *Client)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ConfigPath ¶
func (*Client) ConfigPathSet ¶
func (*Client) DiscardOutputQueue ¶
func (c *Client) DiscardOutputQueue()
func (*Client) EchoDisable ¶
func (c *Client) EchoDisable()
func (*Client) EchoEnable ¶
func (c *Client) EchoEnable()
func (*Client) HistoryAdd ¶
func (*Client) HistoryNext ¶
func (*Client) HistoryPrevious ¶
func (*Client) HistoryReset ¶
func (c *Client) HistoryReset()
func (*Client) HistoryShow ¶
func (c *Client) HistoryShow()
func (*Client) LineBufferComplete ¶
func (*Client) Send ¶
enqueue message for client break messages into LF-terminated lines append every line to outputQueue
func (*Client) SendEveryChar ¶
func (*Client) SendPrompt ¶
func (*Client) SetSendEveryChar ¶
func (*Client) StatusConf ¶
func (c *Client) StatusConf()
func (*Client) StatusEnable ¶
func (c *Client) StatusEnable()
func (*Client) StatusExit ¶
func (c *Client) StatusExit()
func (*Client) TermSizeSet ¶
func (*Client) UsernameSet ¶
Click to show internal directories.
Click to hide internal directories.