Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rivo/tview
/ functions
Functions
690 in github.com/rivo/tview
⨍
Functions
690
◇
Types & classes
50
Method
SetMainTextColor
SetMainTextColor sets the color of the items' main text.
list.go:217
Method
SetMaxLines
SetMaxLines sets the maximum number of lines for this text view. Lines at the beginning of the text will be discarded when the text view is drawn, so
textview.go:346
Method
SetMaxWidth
SetMaxWidth sets maximum width of the cell in screen space. This is used to give a column a maximum width. Any cell text whose screen width exceeds th
table.go:99
Method
SetMinSize
SetMinSize sets an absolute minimum width for rows and an absolute minimum height for columns. Panics if negative values are provided.
grid.go:141
Method
SetMouseCapture
SetMouseCapture sets a function which captures mouse events (consisting of the original tcell mouse event and the semantic mouse action) before they a
box.go:263
Method
SetMouseCapture
SetMouseCapture sets a function which captures mouse events (consisting of the original tcell mouse event and the semantic mouse action) before they a
application.go:181
Method
SetOffset
SetOffset sets the number of rows and columns which are skipped before drawing the first grid cell in the top-left corner. As the grid will never comp
grid.go:237
Method
SetOffset
SetOffset sets the text's offset, that is, the number of rows and columns skipped during drawing at the top or on the left, respectively. If wrapping
textarea.go:914
Method
SetOffset
SetOffset sets how many rows and columns should be skipped when drawing the table. This is useful for large tables that do not fit on the screen. Navi
table.go:661
Method
SetOffset
SetOffset sets the number of items to be skipped (vertically) as well as the number of cells skipped horizontally when the list is drawn. Note that on
list.go:156
Method
SetPlaceholder
SetPlaceholder sets the text to be displayed when the input text is empty.
inputfield.go:186
Method
SetPlaceholderStyle
SetPlaceholderStyle sets the style of the placeholder text.
textarea.go:893
Method
SetPlaceholderTextColor
SetPlaceholderTextColor sets the text color of placeholder text.
inputfield.go:234
Method
SetPrefixStyle
SetPrefixStyle sets the style of the prefix string. The prefix string is shown when the user starts typing text, which directly selects the first opti
dropdown.go:255
Method
SetPrefixTextColor
SetPrefixTextColor sets the color of the prefix string. The prefix string is shown when the user starts typing text, which directly selects the first
dropdown.go:247
Method
SetReference
SetReference allows you to store a reference of any type in this node. This will allow you to establish a mapping between the TreeView hierarchy and y
treeview.go:100
Method
SetScreen
SetScreen allows you to provide your own tcell.Screen object. For most applications, this is not needed and you should be familiar with tcell.Screen w
application.go:200
Method
SetSecondaryTextColor
SetSecondaryTextColor sets the color of the items' secondary text.
list.go:231
Method
SetSecondaryTextStyle
SetSecondaryTextStyle sets the style of the items' secondary text. Note that the background color is ignored in order not to override the background c
list.go:239
Method
SetSelectable
SetSelectable sets whether or not this cell can be selected by the user.
table.go:185
Method
SetSelectable
SetSelectable sets a flag indicating whether this node can be selected by the user.
treeview.go:152
Method
SetSelectedBackgroundColor
SetSelectedBackgroundColor sets the background color of selected items.
list.go:267
Method
SetSelectedFocusOnly
SetSelectedFocusOnly sets a flag which determines when the currently selected list item is highlighted. If set to true, selected items are only highli
list.go:297
Method
SetSelectedFunc
SetSelectedFunc sets a handler which is called whenever the user presses the Enter key on a selected cell/row/column. The handler receives the positio
table.go:691
Method
SetSelectedFunc
SetSelectedFunc sets a function which is called when the user selects this node by hitting Enter when it is selected.
treeview.go:159
Method
SetSelectedFunc
SetSelectedFunc sets the function which is called when the user selects a node by pressing Enter on the current selection.
treeview.go:479
Method
SetSelectedFunc
SetSelectedFunc sets a handler which is called when the button was selected.
button.go:115
Method
SetSelectedStyle
SetSelectedStyle sets the style of the selected text.
textarea.go:887
Method
SetSelectedStyle
SetSelectedStyle sets the cell's style when it is selected. If this is uninitialized (tcell.StyleDefault), the table's selected style is used instead.
table.go:179
Method
SetSelectedStyle
SetSelectedStyle sets a specific style for selected cells. If no such style is set, the cell's background and text color are swapped. If a cell define
table.go:592
Method
SetSelectedTextColor
SetSelectedTextColor sets the text color of selected items. Note that the color of main text characters that are different from the main text color (e
list.go:261
Method
SetSelectedTextStyle
SetSelectedTextStyle sets the text style for this node when it is selected.
treeview.go:238
Method
SetSelectionChangedFunc
SetSelectionChangedFunc sets a handler which is called whenever the current selection changes. The handler receives the position of the new selection.
table.go:700
Method
SetShortcutColor
SetShortcutColor sets the color of the items' shortcut.
list.go:245
Method
SetShortcutStyle
SetShortcutStyle sets the style of the items' shortcut. Note that the background color is ignored in order not to override the background color of the
list.go:253
Method
SetSize
SetSize sets the screen size of the input element of the text area. The input element is always located next to the label which is always located in t
textarea.go:818
Method
SetSize
SetSize sets the size of the image. Positive values refer to cells in the terminal. Negative values refer to a percentage of the available space (e.g.
image.go:139
Method
SetSize
SetSize sets the screen size of the main text element of the text view. This element is always located next to the label which is always located in th
textview.go:282
Method
SetStyle
SetStyle sets the cell's style (foreground color, background color, and attributes) all at once.
table.go:170
Method
SetText
SetText sets the cell's text.
table.go:84
Method
SetText
SetText sets the node's text which is displayed.
treeview.go:206
Method
SetText
SetText sets the text of this text view to the provided string. Previously contained text will be removed. As with writing to the text view io.Writer
textview.go:387
Method
SetTextColor
SetTextColor sets the cell's text color.
table.go:126
Method
SetTextColor
SetTextColor sets the initial color of the text.
textview.go:359
Method
SetTextOptions
SetTextOptions sets the text to be placed before and after each drop-down option (prefix/suffix), the text placed before and after the currently selec
dropdown.go:160
Method
SetTextStyle
SetTextStyle sets the text style for this node.
treeview.go:227
Method
SetTextStyle
SetTextStyle sets the initial style of the text. This style's background color also determines the background color of the main text element.
textview.go:377
Method
SetTitleColor
SetTitleColor sets the box's title color.
box.go:352
Method
SetToggleHighlights
SetToggleHighlights sets a flag to determine how regions are highlighted. When set to true, the [TextView.Highlight] function (or a mouse click) will
textview.go:708
Method
SetTransparency
SetTransparency sets the background transparency of this cell. A value of "true" will cause the cell to use the table's background color. A value of "
table.go:150
Method
SetUncheckedString
SetUncheckedString sets the string to be displayed when the checkbox is not checked (defaults to the empty space " "). The string may contain color ta
checkbox.go:167
Method
SetUncheckedStyle
SetUncheckedStyle sets the style of the unchecked checkbox.
checkbox.go:136
Method
SetUseStyleTags
SetUseStyleTags sets a flag that determines whether tags found in the option texts are interpreted as tview tags. By default, this flag is enabled (fo
dropdown.go:175
Method
SetWordWrap
SetWordWrap sets the flag that, if true and if the "wrap" flag is also true (see [TextView.SetWrap]), wraps according to [Unicode Standard Annex #14].
textview.go:329
Method
SetWrap
SetWrap sets the flag that, if true, leads to lines that are longer than the available width being wrapped onto the next line. If false, any character
textview.go:317
Method
SetWrapAround
SetWrapAround sets the flag that determines whether navigating the list will wrap around. That is, navigating downwards on the last item will move the
list.go:322
Method
SetWrapSelection
SetWrapSelection determines whether a selection wraps vertically or horizontally when moved. Vertically wrapping selections will jump from the last se
table.go:866
Method
Suspend
Suspend temporarily suspends the application by exiting terminal UI mode and invoking the provided function "f". When "f" returns, terminal UI mode is
application.go:643
Method
Sync
Sync forces a full re-sync of the screen buffer with the actual screen during the next event cycle. This is useful for when the terminal screen is cor
application.go:753
Function
Table
Table demonstrates the Table.
demos/presentation/table.go:251
Function
TextView1
TextView1 demonstrates the basic text view.
demos/presentation/textview.go:33
Function
TextView2
TextView2 demonstrates the extended text view.
demos/presentation/textview.go:114
Function
TranslateANSI
TranslateANSI replaces ANSI escape sequences found in the provided string with tview's style tags and returns the resulting string.
ansi.go:278
Function
TreeView
TreeView demonstrates the tree view.
demos/presentation/treeview.go:109
Function
Unescape
Unescape unescapes text previously escaped with [Escape].
strings.go:617
Method
Write
Write implements the io.Writer interface. It behaves like the TextView's Write() method except that it does not acquire the lock.
textview.go:45
Function
init
Package initialization.
util.go:32
Function
main
()
demos/flex/main.go:8
Function
main
()
demos/inputfield/main.go:9
Function
main
()
demos/inputfield/autocomplete/main.go:13
Function
main
()
demos/inputfield/autocompleteasync/main.go:18
Function
main
()
demos/primitive/main.go:84
Function
main
Show a navigable tree view of the current directory.
demos/treeview/main.go:13
Function
main
()
demos/image/main.go:21
Function
main
()
demos/checkbox/main.go:6
Function
main
()
demos/pages/main.go:12
Function
main
()
demos/unicode/main.go:10
Function
main
()
demos/grid/main.go:8
Function
main
()
demos/frame/main.go:9
Function
main
()
demos/form/main.go:8
Function
main
()
demos/table/main.go:11
Function
main
()
demos/table/virtualtable/main.go:35
Function
main
()
demos/textview/main.go:22
Function
main
()
demos/list/main.go:8
Function
main
()
demos/textarea/main.go:11
Function
main
()
demos/button/main.go:6
Function
main
Starting point for the presentation.
demos/presentation/main.go:32
Function
main
()
demos/box/main.go:9
Function
main
()
demos/modal/main.go:8
Function
main
()
demos/dropdown/main.go:6
← previous
601–690 of 690, ranked by callers