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

muesli / termenv
58%
master: 50%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6
DEFAULT BRANCH: master
Repo Added 13 Jan 2020 04:16AM UTC
Files 14
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

LAST BUILD ON BRANCH race-fix
branch: race-fix
CHANGE BRANCH
x
Reset
  • race-fix
  • bump-deps
  • cach-default
  • cache-profile
  • check-nil
  • ci
  • ci-case
  • ci-osc
  • cloud-shell
  • color-cache
  • colorfgbg-parsing
  • compat-readme
  • copy
  • copy-primary
  • coverage-workflow
  • default-color-cache
  • default-output
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/setup-go-4
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/github_actions/golangci/golangci-lint-action-3
  • dependabot/github_actions/golangci/golangci-lint-action-7
  • dependabot/github_actions/golangci/golangci-lint-action-8
  • dependabot/github_actions/golangci/golangci-lint-action-9
  • dependabot/go_modules/examples/ssh/golang.org/x/crypto-0.35.0
  • dependabot/go_modules/examples/ssh/golang.org/x/crypto-0.45.0
  • dependabot/go_modules/github.com/aymanbagabas/go-osc52-1.2.1
  • dependabot/go_modules/github.com/aymanbagabas/go-osc52-1.2.2
  • dependabot/go_modules/github.com/mattn/go-isatty-0.0.16
  • dependabot/go_modules/github.com/mattn/go-isatty-0.0.17
  • dependabot/go_modules/github.com/mattn/go-isatty-0.0.18
  • dependabot/go_modules/github.com/mattn/go-isatty-0.0.19
  • dependabot/go_modules/github.com/mattn/go-isatty-0.0.20
  • dependabot/go_modules/github.com/mattn/go-runewidth-0.0.14
  • dependabot/go_modules/github.com/mattn/go-runewidth-0.0.15
  • dependabot/go_modules/golang.org/x/sys-0.10.0
  • dependabot/go_modules/golang.org/x/sys-0.11.0
  • dependabot/go_modules/golang.org/x/sys-0.12.0
  • dependabot/go_modules/golang.org/x/sys-0.13.0
  • dependabot/go_modules/golang.org/x/sys-0.5.0
  • dependabot/go_modules/golang.org/x/sys-0.6.0
  • dependabot/go_modules/golang.org/x/sys-0.7.0
  • dependabot/go_modules/golang.org/x/sys-0.8.0
  • dependabot/go_modules/golang.org/x/sys-0.9.0
  • deps
  • ext-mouse
  • fix-default-output
  • fix-deprecations
  • fix-disable-mouse-press
  • flush-check
  • getpgrp-solaris
  • ghostty
  • ioctl
  • kitty-ansi-detection
  • kkp
  • lint
  • linter-config
  • master
  • mux-note
  • names
  • osc52
  • osc777
  • readme-badge
  • readme-clipboard
  • readme-env-vars
  • readme-links
  • readme-matrix
  • readme-order
  • readwriter
  • ref-color
  • refs/tags/v0.1
  • refs/tags/v0.1.0
  • refs/tags/v0.10.0
  • refs/tags/v0.11.0
  • refs/tags/v0.12.0
  • refs/tags/v0.13.0
  • refs/tags/v0.14.0
  • refs/tags/v0.15.0
  • refs/tags/v0.15.1
  • refs/tags/v0.15.2
  • refs/tags/v0.16.0
  • refs/tags/v0.2
  • refs/tags/v0.2.0
  • refs/tags/v0.3.0
  • refs/tags/v0.4.0
  • refs/tags/v0.5.0
  • refs/tags/v0.5.1
  • refs/tags/v0.5.2
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.7.1
  • refs/tags/v0.7.2
  • refs/tags/v0.8.0
  • refs/tags/v0.8.1
  • refs/tags/v0.9.0
  • rename-notify
  • rxvt-term-suffix
  • screen-detection
  • seq-consts
  • sequence-timeout
  • session-cmds
  • shims-aix-plan9
  • ssh
  • ssh-pty
  • templatehelper-output
  • term-ctrl-grp
  • termenv-next
  • tests
  • tmux-statusreport
  • underline
  • uniseg-stringwidth
  • unsafe
  • update-docs
  • update-go-colorful
  • update-readme
  • update-ssh-example
  • vte-note
  • wezterm
  • windows-color-detection
  • windows-console

28 Jul 2023 07:11PM UTC coverage: 58.36% (+0.4%) from 57.98%
5695482182

Pull #146

github

aymanbagabas
fix!: output race condition

Use a mutex to guard setting/getting the color profile and fg/bg colors.
Use `SetColorProfile` to change the output color profile.
Use pointer receiver since we have a lock in the struct.

Fixes: https://github.com/charmbracelet/lipgloss/pull/210
Fixes: https://github.com/muesli/termenv/issues/145
Pull Request #146: fix!: output race condition

78 of 78 new or added lines in 6 files covered. (100.0%)

548 of 939 relevant lines covered (58.36%)

18.86 hits per line

Relevant lines Covered
Build:
Build:
939 RELEVANT LINES 548 COVERED LINES
18.86 HITS PER LINE
Source Files on race-fix
  • Tree
  • List 12
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
5695482182 race-fix fix!: output race condition Use a mutex to guard setting/getting the color profile and fg/bg colors. Use `SetColorProfile` to change the output color profile. Use pointer receiver since we have a lock in the struct. Fixes: https://github.com/cha... Pull #146 28 Jul 2023 07:12PM UTC aymanbagabas github
58.36
5695481766 race-fix fix!: output race condition Use a mutex to guard setting/getting the color profile and fg/bg colors. Use `SetColorProfile` to change the output color profile. Use pointer receiver since we have a lock in the struct. Fixes: https://github.com/cha... push 28 Jul 2023 07:12PM UTC aymanbagabas github
58.36
5694553163 race-fix fix!: output race condition `ColorProfile` reads the terminal environment every time the function is called. This is inefficient. We only need to read the `$TERM` environment variable once when we initialize the output. So instead, we cache the v... Pull #146 28 Jul 2023 05:17PM UTC aymanbagabas github
58.36
5694552778 race-fix fix!: output race condition `ColorProfile` reads the terminal environment every time the function is called. This is inefficient. We only need to read the `$TERM` environment variable once when we initialize the output. So instead, we cache the v... push 28 Jul 2023 05:16PM UTC aymanbagabas github
58.36
5694506982 race-fix fix!: output race condition `ColorProfile` reads the terminal environment every time the function is called. This is inefficient. We only need to read the `$TERM` environment variable once when we initialize the output. So instead, we cache the v... push 28 Jul 2023 05:11PM UTC aymanbagabas github
58.18
5694507539 race-fix fix!: output race condition `ColorProfile` reads the terminal environment every time the function is called. This is inefficient. We only need to read the `$TERM` environment variable once when we initialize the output. So instead, we cache the v... Pull #146 28 Jul 2023 05:11PM UTC aymanbagabas github
58.18
5694303814 race-fix fix!: output race condition BREAKING! `ColorProfile` reads the terminal environment every time the function is called. This is inefficient. We only need to read the `$TERM` environment variable once when we initialize the output. So we cache the... Pull #146 28 Jul 2023 04:47PM UTC aymanbagabas github
58.18
5694303477 race-fix fix!: output race condition BREAKING! `ColorProfile` reads the terminal environment every time the function is called. This is inefficient. We only need to read the `$TERM` environment variable once when we initialize the output. So we cache the... push 28 Jul 2023 04:46PM UTC aymanbagabas github
58.18
5694104086 race-fix fix: output race condition Make output profile accessible through `ColorProfile`. Use `SetColorProfile` to change the output color profile. Use a mutex to guard output writes. Use pointer receiver Fixes: https://github.com/charmbracelet/lipgloss... Pull #146 28 Jul 2023 04:22PM UTC aymanbagabas github
58.09
5694103560 race-fix fix: output race condition Make output profile accessible through `ColorProfile`. Use `SetColorProfile` to change the output color profile. Use a mutex to guard output writes. Use pointer receiver Fixes: https://github.com/charmbracelet/lipgloss... push 28 Jul 2023 04:22PM UTC aymanbagabas github
58.09
See All Builds (634)
  • Repo on GitHub
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