Documentation ¶
Index ¶
- func KillSession(name string, writer io.Writer)
- type Pane
- func (this *Pane) Exec(command string)
- func (this *Pane) ResizeDown(num int)
- func (this *Pane) ResizeLeft(num int)
- func (this *Pane) ResizeRight(num int)
- func (this *Pane) ResizeUp(num int)
- func (this *Pane) Split() *Pane
- func (this *Pane) SplitWAttr(attr SplitAttr) *Pane
- func (this *Pane) Vsplit() *Pane
- func (this *Pane) VsplitWAttr(attr SplitAttr) *Pane
- type Session
- type SessionAttr
- type SplitAttr
- type Window
- type WindowAttr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KillSession ¶
KillSession sends a command to kill the tmux session
Types ¶
type Pane ¶
type Pane struct { Number int // contains filtered or unexported fields }
func (*Pane) ResizeDown ¶
func (*Pane) ResizeLeft ¶
func (*Pane) ResizeRight ¶
func (*Pane) SplitWAttr ¶
func (*Pane) VsplitWAttr ¶
type Session ¶
Session represents a tmux session.
Use the method NewSession to create a Session instance.
func NewSession ¶
Creates a new Tmux Session. It will kill any existing session with the provided name.
func NewSessionAttr ¶
func NewSessionAttr(p SessionAttr, writer io.Writer) *Session
Creates a new Tmux Session based on NewSessionAttr. It will kill any existing session with the provided name.
func (*Session) AddWindowAttr ¶
func (this *Session) AddWindowAttr(attr WindowAttr) *Window
Creates window with provided name for this session
type SessionAttr ¶
type Window ¶
type Window struct { Number int Name string Directory string // contains filtered or unexported fields }
Window Represent a tmux window. You usually should not create an instance of Window directly.
type WindowAttr ¶
Click to show internal directories.
Click to hide internal directories.