MCPcopy Create free account

hub / github.com/rivo/tview / functions

Functions690 in github.com/rivo/tview

MethodSetMainTextColor
SetMainTextColor sets the color of the items' main text.
list.go:217
MethodSetMaxLines
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
MethodSetMaxWidth
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
MethodSetMinSize
SetMinSize sets an absolute minimum width for rows and an absolute minimum height for columns. Panics if negative values are provided.
grid.go:141
MethodSetMouseCapture
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
MethodSetMouseCapture
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
MethodSetOffset
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
MethodSetOffset
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
MethodSetOffset
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
MethodSetOffset
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
MethodSetPlaceholder
SetPlaceholder sets the text to be displayed when the input text is empty.
inputfield.go:186
MethodSetPlaceholderStyle
SetPlaceholderStyle sets the style of the placeholder text.
textarea.go:893
MethodSetPlaceholderTextColor
SetPlaceholderTextColor sets the text color of placeholder text.
inputfield.go:234
MethodSetPrefixStyle
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
MethodSetPrefixTextColor
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
MethodSetReference
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
MethodSetScreen
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
MethodSetSecondaryTextColor
SetSecondaryTextColor sets the color of the items' secondary text.
list.go:231
MethodSetSecondaryTextStyle
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
MethodSetSelectable
SetSelectable sets whether or not this cell can be selected by the user.
table.go:185
MethodSetSelectable
SetSelectable sets a flag indicating whether this node can be selected by the user.
treeview.go:152
MethodSetSelectedBackgroundColor
SetSelectedBackgroundColor sets the background color of selected items.
list.go:267
MethodSetSelectedFocusOnly
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
MethodSetSelectedFunc
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
MethodSetSelectedFunc
SetSelectedFunc sets a function which is called when the user selects this node by hitting Enter when it is selected.
treeview.go:159
MethodSetSelectedFunc
SetSelectedFunc sets the function which is called when the user selects a node by pressing Enter on the current selection.
treeview.go:479
MethodSetSelectedFunc
SetSelectedFunc sets a handler which is called when the button was selected.
button.go:115
MethodSetSelectedStyle
SetSelectedStyle sets the style of the selected text.
textarea.go:887
MethodSetSelectedStyle
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
MethodSetSelectedStyle
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
MethodSetSelectedTextColor
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
MethodSetSelectedTextStyle
SetSelectedTextStyle sets the text style for this node when it is selected.
treeview.go:238
MethodSetSelectionChangedFunc
SetSelectionChangedFunc sets a handler which is called whenever the current selection changes. The handler receives the position of the new selection.
table.go:700
MethodSetShortcutColor
SetShortcutColor sets the color of the items' shortcut.
list.go:245
MethodSetShortcutStyle
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
MethodSetSize
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
MethodSetSize
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
MethodSetSize
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
MethodSetStyle
SetStyle sets the cell's style (foreground color, background color, and attributes) all at once.
table.go:170
MethodSetText
SetText sets the cell's text.
table.go:84
MethodSetText
SetText sets the node's text which is displayed.
treeview.go:206
MethodSetText
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
MethodSetTextColor
SetTextColor sets the cell's text color.
table.go:126
MethodSetTextColor
SetTextColor sets the initial color of the text.
textview.go:359
MethodSetTextOptions
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
MethodSetTextStyle
SetTextStyle sets the text style for this node.
treeview.go:227
MethodSetTextStyle
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
MethodSetTitleColor
SetTitleColor sets the box's title color.
box.go:352
MethodSetToggleHighlights
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
MethodSetTransparency
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
MethodSetUncheckedString
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
MethodSetUncheckedStyle
SetUncheckedStyle sets the style of the unchecked checkbox.
checkbox.go:136
MethodSetUseStyleTags
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
MethodSetWordWrap
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
MethodSetWrap
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
MethodSetWrapAround
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
MethodSetWrapSelection
SetWrapSelection determines whether a selection wraps vertically or horizontally when moved. Vertically wrapping selections will jump from the last se
table.go:866
MethodSuspend
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
MethodSync
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
FunctionTable
Table demonstrates the Table.
demos/presentation/table.go:251
FunctionTextView1
TextView1 demonstrates the basic text view.
demos/presentation/textview.go:33
FunctionTextView2
TextView2 demonstrates the extended text view.
demos/presentation/textview.go:114
FunctionTranslateANSI
TranslateANSI replaces ANSI escape sequences found in the provided string with tview's style tags and returns the resulting string.
ansi.go:278
FunctionTreeView
TreeView demonstrates the tree view.
demos/presentation/treeview.go:109
FunctionUnescape
Unescape unescapes text previously escaped with [Escape].
strings.go:617
MethodWrite
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
Functioninit
Package initialization.
util.go:32
Functionmain
()
demos/flex/main.go:8
Functionmain
()
demos/inputfield/main.go:9
Functionmain
()
demos/inputfield/autocomplete/main.go:13
Functionmain
()
demos/inputfield/autocompleteasync/main.go:18
Functionmain
()
demos/primitive/main.go:84
Functionmain
Show a navigable tree view of the current directory.
demos/treeview/main.go:13
Functionmain
()
demos/image/main.go:21
Functionmain
()
demos/checkbox/main.go:6
Functionmain
()
demos/pages/main.go:12
Functionmain
()
demos/unicode/main.go:10
Functionmain
()
demos/grid/main.go:8
Functionmain
()
demos/frame/main.go:9
Functionmain
()
demos/form/main.go:8
Functionmain
()
demos/table/main.go:11
Functionmain
()
demos/table/virtualtable/main.go:35
Functionmain
()
demos/textview/main.go:22
Functionmain
()
demos/list/main.go:8
Functionmain
()
demos/textarea/main.go:11
Functionmain
()
demos/button/main.go:6
Functionmain
Starting point for the presentation.
demos/presentation/main.go:32
Functionmain
()
demos/box/main.go:9
Functionmain
()
demos/modal/main.go:8
Functionmain
()
demos/dropdown/main.go:6
← previous601–690 of 690, ranked by callers