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

jedib0t / go-pretty / 41903829197
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: cursor/progress-stderr-terminal-width-1243
DEFAULT BRANCH: main
Ran 04 Nov 2026 08:10PM UTC
Jobs 1
Files 44
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 Nov 2026 08:06PM UTC coverage: 100.0%. Remained the same
41903829197

Pull #447

github

simpleqt
text: end CSI sequences at their final byte, not only at "m"

EscSeqParser.isEscapeStopRune() ended a CSI sequence at "m" only, so every
other CSI sequence stayed open and the text after it was consumed as part of
the sequence, even though a CSI sequence ends at its first final byte in the
range 0x40-0x7E (ECMA-48, section 5.4).

text.Cursor and text.EraseLine emit exactly such sequences ("\x1b[A",
"\x1b[5B", "\x1b[K", ...):

    StripEscape(EraseLine.Sprint() + "Ghost")                   -> "" (want "Ghost")
    StringWidthWithoutEscSequences(CursorUp.Sprintn(3) + "abc") -> 0 (want 3)
    LongestLineLen(EraseLine.Sprint() + "abc\ndef")             -> 0 (want 3)
    Trim(EraseLine.Sprint() + "abcdef", 3)                      -> "\x1b[Kabcdef"

Pad, Snip, RuneCount, Widen and InsertEveryN inherited the miscount.

A CSI sequence now ends at the first byte in 0x40-0x7E that follows the "ESC ["
introducer, and ParseSeq() ignores the CSI sequences that are not SGR
("...m"): their parameter bytes are not attribute codes, so "\x1b[2;3H"
positions the cursor instead of turning on dim, and it leaves the attributes
in force untouched.
Pull Request #447: text: end CSI sequences at their final byte, not only at "m"

7 of 7 new or added lines in 1 file covered. (100.0%)

5170 of 5170 relevant lines covered (100.0%)

1.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41903829197.1 04 Nov 2026 08:10PM UTC 44
100.0
GitHub Action Run
Source Files on build 41903829197
  • Tree
  • List 44
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #447
  • PR Base - main (#41273330594)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc