Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultShell() string
- func Supported() bool
- type Manager
- type Session
- func (s *Session) Close() error
- func (s *Session) Done() <-chan struct{}
- func (s *Session) Exited() bool
- func (s *Session) HasForegroundProcess() bool
- func (s *Session) ID() string
- func (s *Session) Resize(cols, rows int) error
- func (s *Session) Shell() string
- func (s *Session) Size() (cols, rows int)
- func (s *Session) Subscribe() (snapshot []byte, ch <-chan []byte, cancel func())
- func (s *Session) Title() string
- func (s *Session) Write(p []byte) error
- type Shell
Constants ¶
View Source
const ( DefaultCols = 80 DefaultRows = 24 )
Variables ¶
View Source
var ErrUnsupported = errors.New("terminal sessions are not supported on this platform")
Functions ¶
func DefaultShell ¶
func DefaultShell() string
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) SetExitHandler ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) HasForegroundProcess ¶ added in v0.12.14
HasForegroundProcess reports whether the PTY foreground process group is a command rather than the interactive shell itself.
Click to show internal directories.
Click to hide internal directories.