mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
fix: move output handling to renderer
This commit is contained in:
26
renderer.go
26
renderer.go
@@ -23,10 +23,30 @@ type renderer interface {
|
||||
|
||||
// Whether or not the alternate screen buffer is enabled.
|
||||
altScreen() bool
|
||||
// Enable the alternate screen buffer.
|
||||
enterAltScreen()
|
||||
// Disable the alternate screen buffer.
|
||||
exitAltScreen()
|
||||
|
||||
// Record internally that the alternate screen buffer is enabled. This
|
||||
// does not actually toggle the alternate screen buffer.
|
||||
setAltScreen(bool)
|
||||
// Show the cursor.
|
||||
showCursor()
|
||||
// Hide the cursor.
|
||||
hideCursor()
|
||||
|
||||
// enableMouseCellMotion enables mouse click, release, wheel and motion
|
||||
// events if a mouse button is pressed (i.e., drag events).
|
||||
enableMouseCellMotion()
|
||||
|
||||
// DisableMouseCellMotion disables Mouse Cell Motion tracking.
|
||||
disableMouseCellMotion()
|
||||
|
||||
// EnableMouseAllMotion enables mouse click, release, wheel and motion
|
||||
// events, regardless of whether a mouse button is pressed. Many modern
|
||||
// terminals support this, but not all.
|
||||
enableMouseAllMotion()
|
||||
|
||||
// DisableMouseAllMotion disables All Motion mouse tracking.
|
||||
disableMouseAllMotion()
|
||||
}
|
||||
|
||||
// repaintMsg forces a full repaint.
|
||||
|
||||
Reference in New Issue
Block a user