Versions in this module Expand all Collapse all v0 v0.4.1 Oct 27, 2018 Changes in this version + const ChannelTypeChannel + const ChannelTypeGroup + const ChannelTypeIM + const ChannelTypeMpIM + const CommandMode + const IconChannel + const IconGroup + const IconIM + const IconMpIM + const IconNotification + const IconOffline + const IconOnline + const InsertMode + const PresenceActive + const PresenceAway + const SearchMode + var COLORS = []string + type ChannelItem struct + ID string + Name string + Notification bool + Presence string + StyleIcon string + StylePrefix string + StyleText string + Topic string + Type string + UserID string + func (c ChannelItem) GetChannelName() string + func (c ChannelItem) ToString() string + type Channels struct + ChannelItems []ChannelItem + CursorPosition int + List *termui.List + Offset int + SearchMatches []int + SearchPosition int + SelectedChannel int + func CreateChannelsComponent(inputHeight int) *Channels + func (c *Channels) Buffer() termui.Buffer + func (c *Channels) FindChannel(channelID string) int + func (c *Channels) GetHeight() int + func (c *Channels) GotoPosition(position int) + func (c *Channels) MarkAsRead(channelID int) + func (c *Channels) MarkAsUnread(channelID string) + func (c *Channels) MoveCursorBottom() + func (c *Channels) MoveCursorDown() + func (c *Channels) MoveCursorTop() + func (c *Channels) MoveCursorUp() + func (c *Channels) ScrollDown() + func (c *Channels) ScrollUp() + func (c *Channels) Search(term string) + func (c *Channels) SearchNext() + func (c *Channels) SearchPrev() + func (c *Channels) SetChannels(channels []ChannelItem) + func (c *Channels) SetPresence(channelID string, presence string) + func (c *Channels) SetSelectedChannel(index int) + func (c *Channels) SetWidth(w int) + func (c *Channels) SetX(x int) + func (c *Channels) SetY(y int) + type Chat struct + List *termui.List + Messages []Message + Offset int + func CreateChatComponent(inputHeight int) *Chat + func (c *Chat) AddMessage(message Message) + func (c *Chat) Buffer() termui.Buffer + func (c *Chat) ClearMessages() + func (c *Chat) GetHeight() int + func (c *Chat) GetMaxItems() int + func (c *Chat) Help(usage string, cfg *config.Config) + func (c *Chat) ScrollDown() + func (c *Chat) ScrollUp() + func (c *Chat) SetBorderLabel(channelName string) + func (c *Chat) SetMessages(messages []Message) + func (c *Chat) SetWidth(w int) + func (c *Chat) SetX(x int) + func (c *Chat) SetY(y int) + type Debug struct + List *termui.List + Par *termui.Par + func CreateDebugComponent(inputHeight int) *Debug + func (d *Debug) Buffer() termui.Buffer + func (d *Debug) GetHeight() int + func (d *Debug) Println(text string) + func (d *Debug) SetWidth(w int) + func (d *Debug) SetX(x int) + func (d *Debug) SetY(y int) + type Input struct + CursorPositionScreen int + CursorPositionText int + Offset int + Par *termui.Par + Text []rune + func CreateInputComponent() *Input + func (i *Input) Backspace() + func (i *Input) Buffer() termui.Buffer + func (i *Input) CalculateOffset() int + func (i *Input) Clear() + func (i *Input) Delete() + func (i *Input) GetHeight() int + func (i *Input) GetMaxWidth() int + func (i *Input) GetRuneWidthLeft() int + func (i *Input) GetRuneWidthOffsetToCursor() int + func (i *Input) GetRuneWidthRight() int + func (i *Input) GetText() string + func (i *Input) Insert(key rune) + func (i *Input) IsEmpty() bool + func (i *Input) MoveCursorLeft() + func (i *Input) MoveCursorRight() + func (i *Input) ScrollLeft() + func (i *Input) ScrollRight() + func (i *Input) SetWidth(w int) + func (i *Input) SetX(x int) + func (i *Input) SetY(y int) + type Message struct + Content string + FormatTime string + Name string + StyleName string + StyleText string + StyleTime string + Time time.Time + type Mode struct + Par *termui.Par + func CreateModeComponent() *Mode + func (m *Mode) Buffer() termui.Buffer + func (m *Mode) GetHeight() int + func (m *Mode) SetCommandMode() + func (m *Mode) SetInsertMode() + func (m *Mode) SetSearchMode() + func (m *Mode) SetWidth(w int) + func (m *Mode) SetX(x int) + func (m *Mode) SetY(y int)