MCPcopy Create free account

hub / github.com/charmbracelet/bubbletea / types & classes

Types & classes203 in github.com/charmbracelet/bubbletea

↓ 8 callersStructMouse
Mouse represents a Mouse message. Use [MouseMsg] to represent all mouse messages. The X and Y coordinates are zero-based, with (0,0) being the upper
mouse.go:71
↓ 4 callersStructKey
Key represents a Key press or release event. It contains information about the Key pressed, like the runes, the type of Key, and the modifiers pressed
key.go:302
↓ 1 callersStructBackgroundColorMsg
BackgroundColorMsg represents a background color message. This message is emitted when the program requests the terminal background color with the [Re
color.go:67
↓ 1 callersStructBlurMsg
BlurMsg represents a terminal blur message. This occurs when the terminal loses focus.
focus.go:9
↓ 1 callersStructCapabilityMsg
CapabilityMsg represents a Termcap/Terminfo response event. Termcap responses are generated by the terminal in response to RequestTermcap (XTGETTCAP)
termcap.go:41
↓ 1 callersStructClipboardMsg
ClipboardMsg is a clipboard read message event. This message is emitted when a terminal receives an OSC52 clipboard read message event.
clipboard.go:5
↓ 1 callersStructCursorColorMsg
CursorColorMsg represents a cursor color change message. This message is emitted when the program requests the terminal cursor color.
color.go:81
↓ 1 callersStructCursorPositionMsg
CursorPositionMsg is a message that represents the terminal cursor position.
cursor.go:7
↓ 1 callersTypeAliasEnvMsg
EnvMsg is a message that represents the environment variables of the program. This is useful for getting the environment variables of programs running
environ.go:19
↓ 1 callersStructFocusMsg
FocusMsg represents a terminal focus message. This occurs when the terminal gains focus.
focus.go:5
↓ 1 callersStructForegroundColorMsg
ForegroundColorMsg represents a foreground color message. This message is emitted when the program requests the terminal foreground color with the [Re
color.go:36
↓ 1 callersTypeAliasKeyPressMsg
KeyPressMsg represents a key press message.
key.go:191
↓ 1 callersTypeAliasKeyReleaseMsg
KeyReleaseMsg represents a key release message.
key.go:224
↓ 1 callersStructKeyboardEnhancementsMsg
KeyboardEnhancementsMsg is a message that gets sent when the terminal supports keyboard enhancements.
keyboard.go:9
↓ 1 callersStructModeReportMsg
ModeReportMsg is a message that represents a mode report event (DECRPM). This is sent by the terminal in response to a request for a terminal mode re
screen.go:62
↓ 1 callersTypeAliasMouseClickMsg
MouseClickMsg represents a mouse button click message.
mouse.go:83
↓ 1 callersTypeAliasMouseMotionMsg
MouseMotionMsg represents a mouse motion message.
mouse.go:128
↓ 1 callersTypeAliasMouseReleaseMsg
MouseReleaseMsg represents a mouse button release message.
mouse.go:98
↓ 1 callersTypeAliasMouseWheelMsg
MouseWheelMsg represents a mouse wheel message event.
mouse.go:113
↓ 1 callersStructPasteEndMsg
PasteEndMsg is an message that is emitted when the terminal ends the bracketed-paste text.
paste.go:20
↓ 1 callersStructPasteMsg
PasteMsg is an message that is emitted when a terminal receives pasted text using bracketed-paste.
paste.go:5
↓ 1 callersStructPasteStartMsg
PasteStartMsg is an message that is emitted when the terminal starts the bracketed-paste text.
paste.go:16
↓ 1 callersStructTerminalVersionMsg
TerminalVersionMsg is a message that represents the terminal version.
xterm.go:4
↓ 1 callersStructWindowSizeMsg
WindowSizeMsg is used to report the terminal size. It's sent to Update once initially and then on every terminal resize. Note that Windows does not ha
screen.go:9
↓ 1 callersTypeAliasexitMsg
examples/debounce/main.go:23
↓ 1 callersTypeAliasgotReposErrMsg
examples/autocomplete/main.go:25
↓ 1 callersTypeAliasgotReposSuccessMsg
examples/autocomplete/main.go:24
↓ 1 callersTypeAliasinstalledPkgMsg
examples/package-manager/main.go:115
↓ 1 callersTypeAliasitem
examples/list-simple/main.go:36
↓ 1 callersTypeAliasmodel
examples/fullscreen/main.go:14
↓ 1 callersTypeAliasmodel
A model can be more or less any type of data. It holds all the data for a program, so often it's a struct. For this simple example, however, all we'll
examples/simple/main.go:34
↓ 1 callersTypeAliasmodel
examples/vanish/main.go:10
↓ 1 callersTypeAliasprocessFinishedMsg
processFinishedMsg is sent when a pretend process completes.
examples/tui-daemon-combo/main.go:127
↓ 1 callersTypeAliasprogressMsg
examples/progress-download/tui.go:19
↓ 1 callersTypeAliasrequestCapabilityMsg
requestCapabilityMsg is an internal message that requests the terminal to send its Termcap/Terminfo response.
termcap.go:5
↓ 1 callersStructresponseMsg
A message used to indicate that activity has occurred. In the real world (for example, chat) this would contain actual data.
examples/realtime/main.go:18
↓ 1 callersTypeAliassequenceMsg
sequenceMsg is used internally to run the given commands in order.
commands.go:30
↓ 1 callersTypeAliassetClipboardMsg
setClipboardMsg is an internal message used to set the system clipboard using OSC52.
clipboard.go:26
↓ 1 callersTypeAliassetPrimaryClipboardMsg
setPrimaryClipboardMsg is an internal message used to set the primary clipboard using OSC52.
clipboard.go:48
↓ 1 callersTypeAliasstatusMsg
examples/http/main.go:21
↓ 1 callersTypeAliasstatusMsg
tutorials/commands/main.go:30
↓ 1 callersTypeAliastickMsg
examples/progress-animated/main.go:39
↓ 1 callersTypeAliastickMsg
examples/splash/main.go:164
↓ 1 callersTypeAliastickMsg
examples/fullscreen/main.go:16
↓ 1 callersTypeAliastickMsg
examples/progress-static/main.go:50
↓ 1 callersTypeAliastickMsg
examples/eyes/main.go:44
↓ 1 callersTypeAliastickMsg
examples/doom-fire/main.go:111
TypeAliasBatchMsg
BatchMsg is a message used to perform a bunch of commands concurrently with no ordering guarantees. You can send a BatchMsg with Batch.
commands.go:21
FuncTypeCmd
Cmd is an IO operation that returns a message when it's complete. If it's nil it's considered a no-op. Use it for things like HTTP requests, timers, s
tea.go:390
StructColorProfileMsg
ColorProfileMsg is a message that describes the terminal's color profile. This message is send to the program's update function when the program is st
profile.go:13
StructCursor
Cursor represents a cursor on the terminal screen.
tea.go:357
TypeAliasCursorShape
CursorShape represents a terminal cursor shape.
cursor.go:12
FuncTypeExecCallback
ExecCallback is used when executing an *exec.Command to return a message with an error, which may or may not be nil.
exec.go:56
InterfaceExecCommand
ExecCommand can be implemented to execute things in a blocking fashion in the current terminal.
exec.go:60
StructInterruptMsg
InterruptMsg signals the program should suspend. This usually happens when ctrl+c is pressed on common programs, but since bubbletea puts the terminal
tea.go:586
InterfaceKeyMsg
KeyMsg represents a key event. This can be either a key press or a key release event.
key.go:259
StructKeyboardEnhancements
KeyboardEnhancements describes the requested keyboard enhancement features. If the terminal supports any of them, it will respond with a [KeyboardEnha
tea.go:241
StructLayerHitMsg
LayerHitMsg is a message that is sent to the program when a layer is hit by a mouse event. This is used to determine which layer in a compostable view
examples/clickable/main.go:16
InterfaceLogOptionsSetter
LogOptionsSetter is an interface implemented by stdlib's log and charm's log libraries.
logging.go:29
InterfaceModel
Model contains the program's state as well as its core functions.
tea.go:53
TypeAliasMouseMode
MouseMode represents the mouse mode of a view.
tea.go:284
InterfaceMouseMsg
MouseMsg represents a mouse message. This is a generic mouse message that can represent any kind of mouse event.
mouse.go:46
StructPosition
Position represents a position in the terminal.
cursor.go:4
StructProgram
Program is a terminal user interface.
tea.go:426
FuncTypeProgramOption
ProgramOption is used to set options when initializing a Program. Program can accept a variable number of options. Example usage: p := NewProgram(m
options.go:17
StructProgressBar
ProgressBar represents the terminal progress bar. Support depends on the terminal. See https://learn.microsoft.com/en-us/windows/terminal/tutorials/
tea.go:336
TypeAliasProgressBarState
ProgressBarState represents the state of the progress bar.
tea.go:309
StructQuitMsg
QuitMsg signals that the program should quit. You can send a [QuitMsg] with [Quit].
tea.go:561
StructRawMsg
RawMsg is a message that contains a string to be printed to the terminal without any intermediate processing.
raw.go:5
StructResumeMsg
ResumeMsg can be listen to do something once a program is resumed back from a suspend state.
tea.go:578
StructSuspendMsg
SuspendMsg signals the program should suspend. This usually happens when ctrl+z is pressed on common programs, but since bubbletea puts the terminal i
tea.go:574
StructView
View represents a terminal view that can be composed of multiple layers. It can also contain a cursor that will be rendered on top of the layers.
tea.go:84
StructbackgroundColorMsg
backgroundColorMsg is a message that requests the terminal background color.
color.go:10
StructbenchModel
tea_test.go:615
Structcellbuffer
examples/cellbuffer/main.go:74
StructchannelHandlers
channelHandlers manages the series of channels returned by various processes. It allows us to wait for those processes to terminate before exiting the
tea.go:395
StructclearErrorMsg
examples/file-picker/main.go:21
StructclearScreenMsg
clearScreenMsg is an internal message that signals to clear the screen. You can send a clearScreenMsg with ClearScreen.
screen.go:26
TypeAliascolorType
examples/set-terminal-color/main.go:14
StructctxImplodeMsg
tea_test.go:16
StructcursedRenderer
cursed_renderer.go:18
StructcursorColorMsg
cursorColorMsg is a message that requests the terminal cursor color.
color.go:26
StructdelegateKeyMap
examples/list-fancy/delegate.go:53
Structdialog
Dialog Windows
examples/clickable/main.go:288
StructeditorFinishedMsg
examples/exec/main.go:12
StructerrMsg
examples/http/main.go:23
StructerrMsg
tutorials/commands/main.go:32
TypeAliaserrMsg
examples/isbn-form/main.go:24
TypeAliaserrMsg
examples/textarea/main.go:23
TypeAliaserrMsg
examples/textinput/main.go:22
TypeAliaserrMsg
examples/spinner/main.go:15
Structexample
examples/glamour/main.go:55
StructexecFinishedMsg
exec_test.go:10
StructexecMsg
execMsg is used internally to run an ExecCommand sent with Exec.
exec.go:10
StructforegroundColorMsg
foregroundColorMsg is a message that requests the terminal foreground color.
color.go:18
StructframeMsg
examples/views/main.go:53
StructframeMsg
examples/cellbuffer/main.go:129
StructincrementMsg
tea_test.go:20
Structitem
examples/list-fancy/main.go:35
Structitem
examples/list-default/main.go:14
next →1–100 of 203, ranked by callers