internal

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2023 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildTime string

BuildTime got from builder

View Source
var Version string

Version got from builder

Functions

func ActiveHostsDialog

func ActiveHostsDialog(ts *AllTerminal)

func AddHostDialog added in v1.1.0

func AddHostDialog(b *gtk.Builder, saveFunc func(string))

func LoadHostsDialog

func LoadHostsDialog(b *gtk.Builder, ts *AllTerminal)

func New

func New(hosts []*HostGroup, sshCmd string, sshArgs []string)

func NewConfigDialog

func NewConfigDialog(b *gtk.Builder, c *ConfigStore, saveFunc func())

func SaveHostsDialog

func SaveHostsDialog(b *gtk.Builder, ts *AllTerminal)

Types

type AllTerminal

type AllTerminal struct {
	// contains filtered or unexported fields
}

func NewAllTerminals

func NewAllTerminals(sshCmd string, sshArgs []string, group []*HostGroup, reflow func(t gtk.IWidget)) *AllTerminal

func (*AllTerminal) Activate

func (t *AllTerminal) Activate(host string, active bool)

func (*AllTerminal) AddHost

func (t *AllTerminal) AddHost(group string, name string)

func (*AllTerminal) Each

func (t *AllTerminal) Each(f func(t *Terminal))

func (*AllTerminal) Event

func (t *AllTerminal) Event(ev *gdk.Event)

func (*AllTerminal) Layout

func (t *AllTerminal) Layout() gtk.IWidget

func (*AllTerminal) Len

func (t *AllTerminal) Len() int

func (*AllTerminal) Names

func (t *AllTerminal) Names() []string

func (*AllTerminal) OrderAsc

func (t *AllTerminal) OrderAsc()

func (*AllTerminal) OrderDesc

func (t *AllTerminal) OrderDesc()

func (*AllTerminal) PasteClipboard

func (t *AllTerminal) PasteClipboard()

func (*AllTerminal) Reflow

func (t *AllTerminal) Reflow(width int, force bool, c *Config)

func (*AllTerminal) RemoveClosedHost

func (t *AllTerminal) RemoveClosedHost()

func (*AllTerminal) RemoveGroup

func (t *AllTerminal) RemoveGroup(name string)

type Config

type Config struct {
	StartMaximized bool   `config:"startMaximized" json:"startMaximized"`
	Font           string `config:"font" json:"font"`
	MinWidth       int    `config:"minWidth" json:"minWidth"`
	MinHeight      int    `config:"minHeight" json:"minHeight"`
}

type ConfigStore added in v1.1.0

type ConfigStore struct {
	// contains filtered or unexported fields
}

func NewConfig added in v1.1.0

func NewConfig() (*ConfigStore, error)

func (*ConfigStore) Config added in v1.1.0

func (c *ConfigStore) Config() *Config

func (*ConfigStore) ConfigWithError added in v1.1.0

func (c *ConfigStore) ConfigWithError() (*Config, error)

func (*ConfigStore) NewSnapshot added in v1.1.0

func (c *ConfigStore) NewSnapshot() interface{}

func (*ConfigStore) SetSnapshot added in v1.1.0

func (c *ConfigStore) SetSnapshot(i interface{}, err error)

type HostGroup

type HostGroup struct {
	Name  string
	Hosts []string
}

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

type Terminal

type Terminal struct {
	*gtk.Widget
	*vte.Terminal

	Host      string
	CopyInput bool
	// contains filtered or unexported fields
}

type Terminals

type Terminals struct {
	Name  string
	Hosts []string

	Cols float64
	Rows float64
	// contains filtered or unexported fields
}

func NewTerminals

func NewTerminals(sshCmd string, sshArgs []string, name string) *Terminals

func (*Terminals) Activate

func (t *Terminals) Activate(host string, active bool)

func (*Terminals) AddHost

func (t *Terminals) AddHost(host string)

func (*Terminals) Each

func (t *Terminals) Each(f func(t *Terminal))

func (*Terminals) Event

func (t *Terminals) Event(ev *gdk.Event)

func (*Terminals) Hide

func (t *Terminals) Hide()

func (*Terminals) IsHidden

func (t *Terminals) IsHidden() bool

func (*Terminals) Layout

func (t *Terminals) Layout() *gtk.Grid

func (*Terminals) Len

func (t *Terminals) Len() int

func (*Terminals) Names

func (t *Terminals) Names() []string

func (*Terminals) OrderAsc

func (t *Terminals) OrderAsc()

func (*Terminals) OrderDesc

func (t *Terminals) OrderDesc()

func (*Terminals) PasteClipboard

func (t *Terminals) PasteClipboard()

func (*Terminals) Reflow

func (t *Terminals) Reflow(width int, force bool, c *Config)

func (*Terminals) ReflowTable

func (t *Terminals) ReflowTable(rc *reflowConfig)

func (*Terminals) RemoveClosedHost

func (t *Terminals) RemoveClosedHost()

func (*Terminals) Show

func (t *Terminals) Show()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL