Drew Smirnoff
585149e50e
fix: drain terminal query replies before releasing the terminal ( #1894 )
...
Signed-off-by: Drew Smirnoff <drew@charm.land>
2026-11-20 19:01:53 +04:00
jane michelle arc
9c6598361d
fix: return write errors from Program.Run ( #1879 )
...
Co-authored-by: Drew Smirnoff <drew@charm.land>
Signed-off-by: Drew Smirnoff <drew@charm.land>
2026-11-20 18:52:39 +04:00
Johnny Chen
bc55190481
fix: synchronize canceled input cleanup ( #1876 )
...
AI-assisted-by: Codex (GPT 6.1 sol)
Co-authored-by: Drew Smirnoff <drew@charm.land>
Signed-off-by: Drew Smirnoff <drew@charm.land>
2026-11-20 18:44:32 +04:00
draw me an elephant
7dd9c4c46e
fix: keep signal subscription alive through shutdown ( #1853 )
...
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Drew Smirnoff <drew@charm.land>
Signed-off-by: Drew Smirnoff <drew@charm.land>
2026-11-20 18:38:53 +04:00
draw me an elephant
7ab4335dac
fix: don't panic on uncomparable color.Color values ( #1852 )
...
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Drew Smirnoff <drew@charm.land>
Signed-off-by: Drew Smirnoff <drew@charm.land>
2026-11-20 18:33:00 +04:00
Ahmet Kamer Çivi
18d6fa3b34
fix: close trace file after program run ( #1844 )
...
Co-authored-by: Drew Smirnoff <drew@charm.land>
Signed-off-by: Drew Smirnoff <drew@charm.land>
2026-11-12 17:36:39 +04:00
Ahmet Kamer Çivi
1b8005fc10
fix: avoid terminal wait without input ( #1829 )
...
Co-authored-by: Drew Smirnoff <drew@charm.land>
2026-11-12 17:32:37 +04:00
tianrking
b9e7454fd4
fix: make Quit a no-op before Run starts ( #1840 )
...
Co-authored-by: Drew Smirnoff <drew@charm.land>
2026-11-12 17:26:03 +04:00
draw me an elephant
13fb42d8ea
fix: close the TTY files opened for input when Run returns ( #1855 )
...
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-12 17:25:49 +04:00
draw me an elephant
12b7b4d0eb
fix: restore terminal state on Run error paths ( #1854 )
...
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-12 17:25:35 +04:00
Wu Shuwen
f3d74b724c
fix: ensure terminal state is restored after panics in Batch/Sequence commands ( #1818 )
...
Co-authored-by: TRAE AI Assistant <trae@bytedance.com>
Co-authored-by: Drew Smirnoff <drew@charm.land>
2026-11-12 17:24:49 +04:00
Ricardo-M-L
7a446b73f6
fix: avoid blocking prints after program exit ( #1758 )
...
Co-authored-by: Ricardo-M-L <XuthodoreveraynWX61@elvisfan.com>
Co-authored-by: Drew Smirnoff <drew@charm.land>
2026-11-12 17:23:24 +04:00
陈志谦
55ba0f6de3
fix: allow Program.Run to be called again after the program exits ( #1890 )
...
Signed-off-by: simpleqt <2015900818@qq.com>
2026-11-12 17:21:35 +04:00
Drew Smirnoff
5982a61ef5
fix: data race with Kill() and Run() ( #1774 )
...
Signed-off-by: drew <me@andrinoff.com>
2026-11-12 17:11:18 +04:00
Viktor Danov
e4d617e7e0
perf(renderer): stop the frame ticker while nothing changes ( #1832 )
...
Co-authored-by: Drew Smirnoff <drew@charm.land>
Signed-off-by: Drew Smirnoff <drew@charm.land>
2026-11-09 14:55:22 +04:00
Drew Smirnoff
9c6c325f83
fix: ingnore implausible terminal resize reports ( #1887 )
...
Signed-off-by: drew <me@andrinoff.com>
2026-10-26 17:59:16 +04:00
Drew Smirnoff
41bc626564
feat: OSC 7501 ( #1841 )
...
Signed-off-by: drew <me@andrinoff.com>
2026-10-08 21:36:08 +04:00
adam magued
96d69d2f7e
fix(tty): fall back to default dimensions when terminal size is 0x0 ( #1836 )
...
Co-authored-by: AdamMagued <adammagued.business@gmail.com>
2026-10-02 15:07:33 +04:00
陈志谦
ff51ba4c51
fix: prevent signal goroutine deadlock on shutdown ( #1806 )
2026-09-28 15:07:39 +04:00
draw me an elephant
8b10e22689
fix: skip capability queries when input is disabled ( #1801 )
...
Co-authored-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
2026-09-24 12:05:48 +04:00
deepakganesh78
0d3e281d14
fix: restore kitty keyboard stack on exit ( #1750 )
...
Co-authored-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
2026-08-19 15:56:33 +04:00
Ankit
930e18c966
fix: don't panic in ProgressBarState.String() for out-of-range values ( #1748 )
...
Co-authored-by: drew <me@andrinoff.com>
Signed-off-by: drew <me@andrinoff.com>
2026-08-19 12:21:01 +04:00
Drew Smirnoff
0ef9fc90dc
fix: typo in doc ( #1756 )
...
Signed-off-by: drew <me@andrinoff.com>
2026-08-07 20:32:27 +04:00
mhdna
882727b730
docs: fix links to tutorials & examples ( #1645 )
2026-08-06 16:20:16 +04:00
chaoliang yan
074596e14e
fix: skip input reader restore when input is disabled ( #1680 )
...
Co-authored-by: lawrence3699 <lawrence3699@users.noreply.github.com>
2026-04-20 09:45:06 -04:00
Ayman Bagabas
05df5aecf8
feat: support extended keyboard enhancements ( #1626 )
...
This adds support for the Kitty keyboard protocol's extended
enhancements, allowing applications to request that the terminal report
additional information about key events, such as whether they're part of
a repeat sequence, alternate key values, and associated text.
Supersedes: https://github.com/charmbracelet/bubbletea/pull/1622
Fixes: https://github.com/charmbracelet/bubbletea/issues/1621
Fixes: https://github.com/charmbracelet/bubbletea/issues/1623
2026-04-07 11:03:32 -04:00
Ayman Bagabas
f25595a848
fix(renderer): use mapNl optimization when not on Windows and no PTY input ( #1615 )
...
Without this, emulated-pty Wish sessions on non-Windows platforms can
end up messing up the view.
See issue #1572 for more details.
2026-03-07 01:34:05 +03:00
Ayman Bagabas
66b7abdecf
fix: check if os.Stdin is a terminal before opening the TTY
...
This change checks if os.Stdin is a terminal before attempting to open
the TTY for input. If os.Stdin is not a terminal, it will proceed to
open the TTY as before.
Fixes : #1595
2026-02-26 16:48:30 +03:00
Ayman Bagabas
1ff0a470e0
fix(tea): don't query for synchronized output if the renderer is disabled
2026-02-24 15:07:17 +03:00
Ayman Bagabas
faa0b9c36b
fix: lint issues
2026-02-23 23:15:30 +03:00
Ayman Bagabas
742b944f78
feat(render): enable Unicode mode (2027) for accurate width calculation ( #1584 )
...
When the terminal supports it, we now enable Unicode mode (ANSI mode
2027) to ensure accurate width calculation for wide characters and
emojis. This improves rendering fidelity in terminals that support this
mode.
2026-02-13 15:36:47 +03:00
Ayman Bagabas
b3661ce3d6
fix: always open the TTY for input
2026-02-10 16:07:05 +03:00
Dominykas Makūnas
5a41615aa4
docs: view cursor api typo ( #1557 )
2026-02-10 15:53:48 +03:00
Ayman Bagabas
76f2e6d812
fix(render): always assume raw mode for terminal output
...
When rendering to terminal, always assume raw mode even if the input is
not a TTY. This ensures consistent behavior across different terminal
emulators and environments.
Fixes: https://github.com/charmbracelet/bubbletea/issues/1572
2026-01-26 17:57:16 -05:00
Ayman Bagabas
ec0d820c34
fix(tea): only send actual mouse events to renderer on mouse callback
2025-11-26 12:55:45 -05:00
Ayman Bagabas
46b608f152
docs: update OnMouse callback to use msg parameter
2025-11-24 10:54:35 -05:00
Ayman Bagabas
d1cf96d0d3
refactor: limit view callback to onMouse for mouse events
2025-11-24 10:34:05 -05:00
Ayman Bagabas
0b472523ea
feat: add view callback support
...
This change replaces the previous hit testing mechanism with a more
flexible callback function in the View struct. This allows views to
handle messages directly, enabling more customizable behavior that is
not limited to mouse hits.
2025-11-20 18:38:59 -05:00
Ayman Bagabas
1ef7dd4589
fix: ensure TERM_PROGRAM is set
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-14 16:51:43 -05:00
Copilot
ed050cd108
refactor: extract terminal capability detection into helper function ( #1543 )
...
Co-authored-by: aymanbagabas <3187948+aymanbagabas@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-11-14 14:25:54 -05:00
Ayman Bagabas
9878b7a536
docs: update NewView and SetContent to add examples and notes
2025-11-14 12:52:41 -05:00
Ayman Bagabas
c3c752dbf7
refactor: renderer: support mode 2026, manage cursor visibility and altscreen
...
Adds support for terminal mode 2026 sequences and reintroduces cursor
visibility and alt screen management in the Bubble Tea cursed renderer.
The latest changes from the UV renderer drop cursor visibility and alt
screen management. This commit reintroduces that logic into the Bubble
Tea cursed renderer to ensure proper behavior when switching between alt
screen modes and managing cursor visibility.
It also tries to optimize updates and remove redundant state changes.
2025-11-13 13:50:17 -05:00
Ayman Bagabas
349783e879
feat: query terminal for synchronized output support (mode 2026)
2025-11-13 13:49:33 -05:00
Ayman Bagabas
a1ecb94bda
refactor: rename View.Layer to View.Content for clarity ( #1536 )
2025-11-06 13:57:47 -05:00
Ayman Bagabas
f03c467c1b
refactor: keyboard enhancements api improvements ( #1534 )
2025-11-06 12:22:22 -05:00
Ayman Bagabas
b947ade70d
refactor: change several message types to structs for extensibility
2025-11-04 14:01:26 -05:00
Ayman Bagabas
4accb1c4d5
fix: renderer: avoid requesting keyboard enhancements on close
...
When the renderer is being closed, we should avoid requesting kitty
keyboard enhancements so that we don't leave the terminal with unhandled
input sequences.
2025-10-30 14:37:41 -04:00
Ayman Bagabas
718c8e750a
feat: restore WithoutRenderer option
2025-10-14 17:35:41 -04:00
Ayman Bagabas
094aa2eaa9
chore: remove unused CursorModel interface
2025-10-14 16:50:49 -04:00
Ayman Bagabas
e9e4d1d87b
fix: renderer: remove unused repaint functionality
2025-10-14 13:54:37 -04:00