• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

charmbracelet / bubbletea / 13268871154
50%
main: 72%

Build:
Build:
LAST BUILD BRANCH: windows-fkeys
DEFAULT BRANCH: main
Ran 11 Feb 2025 05:30PM UTC
Jobs 1
Files 25
Run time 386min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Feb 2025 05:29PM UTC coverage: 49.972% (-22.0%) from 71.933%
13268871154

Pull #1118

github

web-flow
fix: reset renderer and cursor when releasing terminal (#1321)

The cursed renderer moves the cursor between renders, which can cause
issues when the terminal is released and restored. For instance, when
we exec a command using tea.Exec, we want the cursor position to remain
the same after the command finishes and goes back to the same position
as before the command was executed.

With tea.Suspend on the other hand, we want to make sure we reset the
cursor position because the program stops executing and is put to
suspend. Resuming the program again initializes the renderer and its
cursor position again from scratch as if it was a new program.

This wasn't an issue for the standard renderer because we always put the
cursor at the lower left corner of the screen. Releasing and restoring
the program wasn't an issue because the cursor was always at the same
position.
Pull Request #1118: (v2) Bubble Tea v2

472 of 943 new or added lines in 23 files covered. (50.05%)

226 existing lines in 8 files now uncovered.

897 of 1795 relevant lines covered (49.97%)

17.78 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
65.96
-5.47% commands.go
2
84.62
sync.go
2
18.52
-1.48% tty_unix.go
3
0.0
cursor.go
3
88.1
49.63% screen.go
3
0.0
xterm.go
4
0.0
raw.go
4
0.0
termcap.go
6
70.0
environ.go
13
35.0
clipboard.go
13
0.0
-62.5% nil_renderer.go
14
0.0
-94.44% key.go
17
76.67
-6.43% options.go
20
0.0
renderer.go
23
60.0
6.34% tty.go
24
38.46
keyboard.go
26
33.33
color.go
26
0.0
-98.61% mouse.go
27
0.0
-62.05% standard_renderer.go
32
78.95
cursed_renderer.go
51
7.27
input.go
157
62.39
-9.75% tea.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
-94.44% key.go
1
60.0
6.34% tty.go
2
88.1
49.63% screen.go
4
0.0
-98.61% mouse.go
4
18.52
-1.48% tty_unix.go
4
76.67
-6.43% options.go
23
62.39
-9.75% tea.go
187
0.0
-62.05% standard_renderer.go
Jobs
ID Job ID Ran Files Coverage
1 13268871154.1 11 Feb 2025 05:30PM UTC 25
49.97
GitHub Action Run
Source Files on build 13268871154
  • Tree
  • List 25
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1118
  • PR Base - main (#13144529407)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc