Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charmbracelet/bubbletea
/ types & classes
Types & classes
203 in github.com/charmbracelet/bubbletea
⨍
Functions
659
◇
Types & classes
203
↓ 8 callers
Struct
Mouse
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 callers
Struct
Key
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 callers
Struct
BackgroundColorMsg
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 callers
Struct
BlurMsg
BlurMsg represents a terminal blur message. This occurs when the terminal loses focus.
focus.go:9
↓ 1 callers
Struct
CapabilityMsg
CapabilityMsg represents a Termcap/Terminfo response event. Termcap responses are generated by the terminal in response to RequestTermcap (XTGETTCAP)
termcap.go:41
↓ 1 callers
Struct
ClipboardMsg
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 callers
Struct
CursorColorMsg
CursorColorMsg represents a cursor color change message. This message is emitted when the program requests the terminal cursor color.
color.go:81
↓ 1 callers
Struct
CursorPositionMsg
CursorPositionMsg is a message that represents the terminal cursor position.
cursor.go:7
↓ 1 callers
TypeAlias
EnvMsg
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 callers
Struct
FocusMsg
FocusMsg represents a terminal focus message. This occurs when the terminal gains focus.
focus.go:5
↓ 1 callers
Struct
ForegroundColorMsg
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 callers
TypeAlias
KeyPressMsg
KeyPressMsg represents a key press message.
key.go:191
↓ 1 callers
TypeAlias
KeyReleaseMsg
KeyReleaseMsg represents a key release message.
key.go:224
↓ 1 callers
Struct
KeyboardEnhancementsMsg
KeyboardEnhancementsMsg is a message that gets sent when the terminal supports keyboard enhancements.
keyboard.go:9
↓ 1 callers
Struct
ModeReportMsg
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 callers
TypeAlias
MouseClickMsg
MouseClickMsg represents a mouse button click message.
mouse.go:83
↓ 1 callers
TypeAlias
MouseMotionMsg
MouseMotionMsg represents a mouse motion message.
mouse.go:128
↓ 1 callers
TypeAlias
MouseReleaseMsg
MouseReleaseMsg represents a mouse button release message.
mouse.go:98
↓ 1 callers
TypeAlias
MouseWheelMsg
MouseWheelMsg represents a mouse wheel message event.
mouse.go:113
↓ 1 callers
Struct
PasteEndMsg
PasteEndMsg is an message that is emitted when the terminal ends the bracketed-paste text.
paste.go:20
↓ 1 callers
Struct
PasteMsg
PasteMsg is an message that is emitted when a terminal receives pasted text using bracketed-paste.
paste.go:5
↓ 1 callers
Struct
PasteStartMsg
PasteStartMsg is an message that is emitted when the terminal starts the bracketed-paste text.
paste.go:16
↓ 1 callers
Struct
TerminalVersionMsg
TerminalVersionMsg is a message that represents the terminal version.
xterm.go:4
↓ 1 callers
Struct
WindowSizeMsg
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 callers
TypeAlias
exitMsg
examples/debounce/main.go:23
↓ 1 callers
TypeAlias
gotReposErrMsg
examples/autocomplete/main.go:25
↓ 1 callers
TypeAlias
gotReposSuccessMsg
examples/autocomplete/main.go:24
↓ 1 callers
TypeAlias
installedPkgMsg
examples/package-manager/main.go:115
↓ 1 callers
TypeAlias
item
examples/list-simple/main.go:36
↓ 1 callers
TypeAlias
model
examples/fullscreen/main.go:14
↓ 1 callers
TypeAlias
model
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 callers
TypeAlias
model
examples/vanish/main.go:10
↓ 1 callers
TypeAlias
processFinishedMsg
processFinishedMsg is sent when a pretend process completes.
examples/tui-daemon-combo/main.go:127
↓ 1 callers
TypeAlias
progressMsg
examples/progress-download/tui.go:19
↓ 1 callers
TypeAlias
requestCapabilityMsg
requestCapabilityMsg is an internal message that requests the terminal to send its Termcap/Terminfo response.
termcap.go:5
↓ 1 callers
Struct
responseMsg
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 callers
TypeAlias
sequenceMsg
sequenceMsg is used internally to run the given commands in order.
commands.go:30
↓ 1 callers
TypeAlias
setClipboardMsg
setClipboardMsg is an internal message used to set the system clipboard using OSC52.
clipboard.go:26
↓ 1 callers
TypeAlias
setPrimaryClipboardMsg
setPrimaryClipboardMsg is an internal message used to set the primary clipboard using OSC52.
clipboard.go:48
↓ 1 callers
TypeAlias
statusMsg
examples/http/main.go:21
↓ 1 callers
TypeAlias
statusMsg
tutorials/commands/main.go:30
↓ 1 callers
TypeAlias
tickMsg
examples/progress-animated/main.go:39
↓ 1 callers
TypeAlias
tickMsg
examples/splash/main.go:164
↓ 1 callers
TypeAlias
tickMsg
examples/fullscreen/main.go:16
↓ 1 callers
TypeAlias
tickMsg
examples/progress-static/main.go:50
↓ 1 callers
TypeAlias
tickMsg
examples/eyes/main.go:44
↓ 1 callers
TypeAlias
tickMsg
examples/doom-fire/main.go:111
TypeAlias
BatchMsg
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
FuncType
Cmd
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
Struct
ColorProfileMsg
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
Struct
Cursor
Cursor represents a cursor on the terminal screen.
tea.go:357
TypeAlias
CursorShape
CursorShape represents a terminal cursor shape.
cursor.go:12
FuncType
ExecCallback
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
Interface
ExecCommand
ExecCommand can be implemented to execute things in a blocking fashion in the current terminal.
exec.go:60
Struct
InterruptMsg
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
Interface
KeyMsg
KeyMsg represents a key event. This can be either a key press or a key release event.
key.go:259
Struct
KeyboardEnhancements
KeyboardEnhancements describes the requested keyboard enhancement features. If the terminal supports any of them, it will respond with a [KeyboardEnha
tea.go:241
Struct
LayerHitMsg
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
Interface
LogOptionsSetter
LogOptionsSetter is an interface implemented by stdlib's log and charm's log libraries.
logging.go:29
Interface
Model
Model contains the program's state as well as its core functions.
tea.go:53
TypeAlias
MouseMode
MouseMode represents the mouse mode of a view.
tea.go:284
Interface
MouseMsg
MouseMsg represents a mouse message. This is a generic mouse message that can represent any kind of mouse event.
mouse.go:46
Struct
Position
Position represents a position in the terminal.
cursor.go:4
Struct
Program
Program is a terminal user interface.
tea.go:426
FuncType
ProgramOption
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
Struct
ProgressBar
ProgressBar represents the terminal progress bar. Support depends on the terminal. See https://learn.microsoft.com/en-us/windows/terminal/tutorials/
tea.go:336
TypeAlias
ProgressBarState
ProgressBarState represents the state of the progress bar.
tea.go:309
Struct
QuitMsg
QuitMsg signals that the program should quit. You can send a [QuitMsg] with [Quit].
tea.go:561
Struct
RawMsg
RawMsg is a message that contains a string to be printed to the terminal without any intermediate processing.
raw.go:5
Struct
ResumeMsg
ResumeMsg can be listen to do something once a program is resumed back from a suspend state.
tea.go:578
Struct
SuspendMsg
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
Struct
View
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
Struct
backgroundColorMsg
backgroundColorMsg is a message that requests the terminal background color.
color.go:10
Struct
benchModel
tea_test.go:615
Struct
cellbuffer
examples/cellbuffer/main.go:74
Struct
channelHandlers
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
Struct
clearErrorMsg
examples/file-picker/main.go:21
Struct
clearScreenMsg
clearScreenMsg is an internal message that signals to clear the screen. You can send a clearScreenMsg with ClearScreen.
screen.go:26
TypeAlias
colorType
examples/set-terminal-color/main.go:14
Struct
ctxImplodeMsg
tea_test.go:16
Struct
cursedRenderer
cursed_renderer.go:18
Struct
cursorColorMsg
cursorColorMsg is a message that requests the terminal cursor color.
color.go:26
Struct
delegateKeyMap
examples/list-fancy/delegate.go:53
Struct
dialog
Dialog Windows
examples/clickable/main.go:288
Struct
editorFinishedMsg
examples/exec/main.go:12
Struct
errMsg
examples/http/main.go:23
Struct
errMsg
tutorials/commands/main.go:32
TypeAlias
errMsg
examples/isbn-form/main.go:24
TypeAlias
errMsg
examples/textarea/main.go:23
TypeAlias
errMsg
examples/textinput/main.go:22
TypeAlias
errMsg
examples/spinner/main.go:15
Struct
example
examples/glamour/main.go:55
Struct
execFinishedMsg
exec_test.go:10
Struct
execMsg
execMsg is used internally to run an ExecCommand sent with Exec.
exec.go:10
Struct
foregroundColorMsg
foregroundColorMsg is a message that requests the terminal foreground color.
color.go:18
Struct
frameMsg
examples/views/main.go:53
Struct
frameMsg
examples/cellbuffer/main.go:129
Struct
incrementMsg
tea_test.go:20
Struct
item
examples/list-fancy/main.go:35
Struct
item
examples/list-default/main.go:14
next →
1–100 of 203, ranked by callers