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

charmbracelet / bubbletea / 13141630956
50%
main: 72%

Build:
Build:
LAST BUILD BRANCH: windows-fkeys
DEFAULT BRANCH: main
Ran 04 Feb 2025 05:48PM UTC
Jobs 1
Files 24
Run time 1min
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

04 Feb 2025 05:47PM UTC coverage: 57.999%. First build
13141630956

Pull #1118

github

web-flow
feat,refactor!: introduce cursor model (#1303)

This introduces a new `CursorModel` interface that can be implemented by
the main model to provide a cursor position and style. A nil cursor will
hide the cursor. Otherwise, the cursor will be shown at the position and
with the style specified. Use `NewCursor` to quickly create a cursor for
a given position with default styles. This method is called in-sync with
the `Model.View` method.

It also removes the previously introduced `Frame` type and `NewFrame`
function. The main model can now return a `string` to render the program's
UI. The main model can return a `Cursor` to set the cursor position and
style.

The old `Init` method is now back and it returns a `Cmd` instead of a
both a `Model` and a `Cmd`. This is to make the mental model more straight
forward, and to keep things backwards compatible.
Pull Request #1118: (v2) Bubble Tea v2

471 of 910 new or added lines in 22 files covered. (51.76%)

881 of 1519 relevant lines covered (58.0%)

21.04 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
65.96
commands.go
1
19.23
tty_unix.go
2
84.62
sync.go
3
0.0
cursor.go
3
0.0
xterm.go
4
0.0
raw.go
4
88.1
screen.go
4
0.0
termcap.go
6
70.0
environ.go
13
35.0
clipboard.go
13
0.0
nil_renderer.go
13
75.29
options.go
14
0.0
key.go
20
0.0
renderer.go
22
60.0
tty.go
24
38.46
keyboard.go
26
33.33
color.go
26
0.0
mouse.go
33
77.85
cursed_renderer.go
51
7.27
input.go
156
62.56
tea.go
Jobs
ID Job ID Ran Files Coverage
1 13141630956.1 04 Feb 2025 05:48PM UTC 24
58.0
GitHub Action Run
Source Files on build 13141630956
  • Tree
  • List 24
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1118
  • Next Build on v2-exp (#13141692178)
  • 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