Documentation
¶
Index ¶
- func GetSessionList(dir string) ([]string, error)
- func SocketHomeDir() (string, error)
- type Command
- type CommandHandler
- type CommandMap
- type HistoryCmd
- func (l *HistoryCmd) Add(text string)
- func (l *HistoryCmd) Cache()
- func (l *HistoryCmd) IsScrolling() bool
- func (l *HistoryCmd) LoadCache()
- func (l *HistoryCmd) Match()
- func (l *HistoryCmd) NextMatch(key tcell.Key) string
- func (l *HistoryCmd) SetCurrentText(text string)
- func (l *HistoryCmd) SetScrolling(b bool)
- type OutBuffer
- type ScheduleTask
- type Session
- type Shell
- type TaskHandler
- type TaskType
- type Terminal
- func (t *Terminal) GetBufferdLines(count int) [][]byte
- func (t *Terminal) HandleIncoming(conn net.Conn)
- func (t *Terminal) Input(cmd []byte)
- func (s *Terminal) RunAfter(d time.Duration, f func())
- func (s *Terminal) RunEvery(d time.Duration, f func())
- func (t *Terminal) SetConn(c *net.UnixConn)
- func (t *Terminal) Start()
- func (t *Terminal) Stop()
- type TickTaskMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionList ¶
func SocketHomeDir ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command user command struct
func GetRootCmd ¶
func GetRootCmd() *Command
func (*Command) GetCommandMap ¶
func (c *Command) GetCommandMap() CommandMap
type CommandHandler ¶
CommandHandler handle command
type HistoryCmd ¶
type HistoryCmd struct {
// contains filtered or unexported fields
}
func NewHistoryCmd ¶
func NewHistoryCmd(len int) *HistoryCmd
func (*HistoryCmd) Cache ¶
func (l *HistoryCmd) Cache()
func (*HistoryCmd) IsScrolling ¶
func (l *HistoryCmd) IsScrolling() bool
func (*HistoryCmd) LoadCache ¶
func (l *HistoryCmd) LoadCache()
func (*HistoryCmd) Match ¶
func (l *HistoryCmd) Match()
func (*HistoryCmd) SetCurrentText ¶
func (l *HistoryCmd) SetCurrentText(text string)
func (*HistoryCmd) SetScrolling ¶
func (l *HistoryCmd) SetScrolling(b bool)
type ScheduleTask ¶
type ScheduleTask struct {
// contains filtered or unexported fields
}
type TaskHandler ¶
type TaskHandler func()
type Terminal ¶
type Terminal struct {
// contains filtered or unexported fields
}
Terminal is the interface wraps basic methods for terminal
func NewTerminal ¶
func NewTerminal() *Terminal
func (*Terminal) GetBufferdLines ¶
func (*Terminal) HandleIncoming ¶
type TickTaskMap ¶
type TickTaskMap map[time.Duration][]ScheduleTask
Click to show internal directories.
Click to hide internal directories.