Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MasahikoSawada/civ
/ functions
Functions
57 in github.com/MasahikoSawada/civ
⨍
Functions
57
◇
Types & classes
6
↓ 7 callers
Method
MoveDown
(move int)
table.go:273
↓ 4 callers
Method
MoveUp
(move int)
table.go:255
↓ 4 callers
Function
drawCells
Actual drawing the given cells to the terminal
terminal.go:230
↓ 4 callers
Method
isMovable
0: up, 1: right, 2:down, 3: left
table.go:206
↓ 3 callers
Function
GetMaxXY
()
terminal.go:253
↓ 3 callers
Function
outputCells
(cells []termbox.Cell)
terminal.go:258
↓ 2 callers
Method
Draw
()
civ.go:167
↓ 2 callers
Method
FindColName
Return true and position if the given name is in col names
table.go:101
↓ 2 callers
Method
InputChar
(r rune)
queryline.go:41
↓ 2 callers
Method
IsColEnabled
(colNum int)
table.go:115
↓ 2 callers
Method
SetMatched
(r int, c int, b int, e int)
table.go:149
↓ 2 callers
Method
SetOffsetRow
(r int)
table.go:227
↓ 2 callers
Method
computeHeight
Return the total size of visible rows.
table.go:186
↓ 2 callers
Method
executeHideCommand
Hide the given columns
command.go:37
↓ 2 callers
Function
formatRow
This function creates a list of termbox.Cell from rowIdx'th row of the table.
terminal.go:35
↓ 2 callers
Method
maybeChangeMode
(key rune)
civ.go:144
↓ 2 callers
Function
padSpaces
Return the padded cell
terminal.go:178
↓ 1 callers
Method
AddDisabledCol
Add the idx'th column to disabled column list. That is, make it invisible
table.go:127
↓ 1 callers
Method
BackwardChar
()
queryline.go:53
↓ 1 callers
Method
ClearAll
()
queryline.go:31
↓ 1 callers
Method
ClearQuery
()
queryline.go:26
↓ 1 callers
Method
DeleteChar
()
queryline.go:65
↓ 1 callers
Method
ExecuteCommand
()
command.go:7
↓ 1 callers
Method
MoveBackward
()
queryline.go:91
↓ 1 callers
Method
MoveForward
()
queryline.go:85
↓ 1 callers
Method
MoveLeft
(move int)
table.go:243
↓ 1 callers
Method
MoveRight
(move int)
table.go:231
↓ 1 callers
Method
MoveToEnd
()
queryline.go:101
↓ 1 callers
Method
MoveToTop
()
queryline.go:97
↓ 1 callers
Method
NEnabledCols
()
table.go:111
↓ 1 callers
Function
NewCiv
(data [][]string, dummyHeader bool)
civ.go:23
↓ 1 callers
Function
NewQueryLine
()
queryline.go:17
↓ 1 callers
Function
NewTable
(indata [][]string, dummyHeader bool)
table.go:42
↓ 1 callers
Function
NewTerminal
()
terminal.go:13
↓ 1 callers
Method
QueryLen
()
queryline.go:37
↓ 1 callers
Method
RemoveDisabledCol
Remove the idx'th column from disabled column list. That is, make it visible
table.go:133
↓ 1 callers
Method
ResetDisabledCol
()
table.go:154
↓ 1 callers
Method
ResetVisibility
()
table.go:158
↓ 1 callers
Method
Run
()
civ.go:171
↓ 1 callers
Method
SetRowVisibility
(rowIdx int, visible bool)
table.go:145
↓ 1 callers
Method
TruncateChars
()
queryline.go:75
↓ 1 callers
Method
computeWidth
Return the total size of visible cols. Note that c.width is the size of formatted cell, i.e. includes padding.
table.go:166
↓ 1 callers
Function
drawQueryLine
Function to draw both prompt and query line
terminal.go:192
↓ 1 callers
Function
drawTable
(tb *Table)
terminal.go:123
↓ 1 callers
Method
executeExitCommand
(vargs []string)
command.go:31
↓ 1 callers
Method
executeFilterCommand
()
command.go:98
↓ 1 callers
Method
executeResetCommand
(vargs []string)
command.go:65
↓ 1 callers
Method
executeSearchCommand
()
command.go:81
↓ 1 callers
Method
executeShowCommand
(vargs []string)
command.go:73
↓ 1 callers
Method
executeShowOnlyCommand
Show only the given colums by hidding other columns
command.go:46
↓ 1 callers
Function
formatCell
(cell Cell, maxSize int, isHeader bool)
terminal.go:80
↓ 1 callers
Method
handleKeyEvent
(event termbox.Event)
civ.go:135
↓ 1 callers
Method
keyEventInput
Key event used by command mode and search mode
civ.go:86
↓ 1 callers
Method
keyEventView
Key event used by view mode
civ.go:34
Method
Debugdump
()
table.go:291
Method
Draw
(ql *QueryLine, tb *Table)
terminal.go:21
Function
main
()
cmd/civ/civ.go:12