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

charmbracelet / bubbletea / 13117372732
58%
main: 72%

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

03 Feb 2025 03:47PM UTC coverage: 57.999% (+0.1%) from 57.888%
13117372732

Pull #1303

github

aymanbagabas
feat,refactor!: introduce cursor model

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 #1303: feat,refactor!: introduce cursor model

18 of 41 new or added lines in 3 files covered. (43.9%)

1 existing line in 1 file now uncovered.

881 of 1519 relevant lines covered (58.0%)

21.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% nil_renderer.go
10
77.85
2.21% cursed_renderer.go
12
62.56
-1.14% tea.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
62.56
-1.14% tea.go
Jobs
ID Job ID Ran Files Coverage
1 13117372732.1 03 Feb 2025 03:50PM UTC 24
58.0
GitHub Action Run
Source Files on build 13117372732
  • Tree
  • List 24
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1303
  • PR Base - v2-exp (#13117317615)
  • 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

© 2026 Coveralls, Inc