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

guptarohit / asciigraph / 27853491383
93%

Build:
DEFAULT BRANCH: master
Ran 19 Jun 2026 11:46PM UTC
Jobs 1
Files 5
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

19 Jun 2026 11:45PM UTC coverage: 92.937% (+0.05%) from 92.892%
27853491383

push

github

web-flow
feat(cli): clear only previous graph in realtime mode (#79)

  **Summary**
Fixes #44 by clearing only the previous graph instead of wiping the
whole terminal in realtime mode, removing flicker and preserving any
output above the graph.

  **Changes**
- Add exported `asciigraph.ClearLines(n)` helper that erases the last
`n` lines (cursor up + clear to end of screen) without touching content
above them.
- Realtime CLI now tracks the last graph height (`lastGraphLines`) and
calls `ClearLines` instead of the full-screen `Clear()`.

  **Verification**
- `go test ./...` (incl. new `TestClearLines`), `go vet ./...`, `gofmt`,
and `GOARCH=arm` cross-compile all pass.
- Manual: `seq 1 100 | go run ./cmd/asciigraph -r` redraws in place with
no flicker; captured output contains zero full-screen `\033[2J` wipes.

  **Closes** #44

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

579 of 623 relevant lines covered (92.94%)

1476.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Go- - 27853491383.1 19 Jun 2026 11:46PM UTC 5
92.94
GitHub Action Run
Source Files on build 27853491383
  • Tree
  • List 5
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3c935a3d on github
  • Prev Build on master (#23684400404)
  • Next Build on master (#27897859507)
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