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

charmbracelet / bubbletea / 7469674945
76%
main: 72%

Build:
Build:
LAST BUILD BRANCH: windows-fkeys
DEFAULT BRANCH: main
Ran 10 Jan 2024 02:45AM UTC
Jobs 1
Files 14
Run time 2s
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

10 Jan 2024 02:44AM UTC coverage: 74.879% (+0.4%) from 74.518%
7469674945

push

github

aymanbagabas
feat: reduce console/term dependencies

Replace mattn/isatty and containerd/console with golang.org/x/term.

This pretty much mostly affects Windows. On Windows, unlike Unix, the
console (TTY) have different handles for input/output. Using the Console
API, we need to enable VT input on the input handle (CONIN) and VT
processing on the output handle (CONOUT). Doing so enables processing VT
sequences on Windows i.e. ANSI colors, mouse sequences, cursor
movements, etc.

We already handle enabling VT processing for the program output using
Termenv `EnableVirtualTerminalProcessing`. For the input side, we enable
VT input right before setting the console to raw.

By doing this, we can drop both containerd/console and mattn/isatty.

1079 of 1441 relevant lines covered (74.88%)

199.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7469674945.1 10 Jan 2024 02:45AM UTC 14
74.88
GitHub Action Run
Source Files on build 7469674945
  • Tree
  • List 14
  • Changed 5
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 497c6af8 on github
  • Prev Build on master (#7467662684)
  • Next Build on reduce-term-deps (#7469692490)
  • 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