Documentation
¶
Index ¶
- func BuildSpaces(maxOffset int) string
- type TUI
- func (ui *TUI) AddVisual(curMode mode.Mode, l []rune, i int, ...) string
- func (ui *TUI) BuildCommandBar(curdata string) string
- func (ui *TUI) BuildLine(str []rune, show bool, start, end int, i int, isCurrent bool, isFirst bool, ...) string
- func (ui *TUI) BuildLowerBar(x int, y int, curdata string, message string, err string, cmd string) string
- func (ui *TUI) BuildNumber(curLine int, n int, maxOffset int, rln bool) string
- func (ui *TUI) BuildTabs(tabs []string, curTab int, show bool) string
- func (ui *TUI) Center(l []rune) string
- func (tui *TUI) MakeDirty()
- func (ui *TUI) PurgeCache()
- func (ui *TUI) ResetRender()
- func (ui *TUI) ResizeRender(w int)
- func (ui *TUI) ToggleRender()
- func (ui *TUI) WithEndLine(l string) []rune
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSpaces ¶
Types ¶
type TUI ¶
type TUI struct {
Redraw chan bool
Message string
Error string
Hello [][]rune
CurOff int
H int
W int
XScroll int
CurRow int
YScroll int
// contains filtered or unexported fields
}
func (*TUI) AddVisual ¶
func (ui *TUI) AddVisual(curMode mode.Mode, l []rune, i int, startOffset, startLine, endOffset, endLine int, Type buffers.BufferType) string
This function is used to add visual highlight to the selected lines
func (*TUI) BuildCommandBar ¶
func (*TUI) BuildLowerBar ¶
func (*TUI) BuildNumber ¶
this func is used to build pretty line numbers (represented with '.'): |..8 // foo func |..9 func foo() { |.10 bar() |.11 baz() |.12 }
func (*TUI) PurgeCache ¶
func (ui *TUI) PurgeCache()
func (*TUI) ResetRender ¶
func (ui *TUI) ResetRender()
func (*TUI) ResizeRender ¶
func (*TUI) ToggleRender ¶
func (ui *TUI) ToggleRender()
func (*TUI) WithEndLine ¶
used to add 'new line' symbol to the givven selected line
Click to show internal directories.
Click to hide internal directories.