• 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 readwriter
branch: readwriter
CHANGE BRANCH
x
Reset
  • readwriter
  • 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
  • race-fix
  • readme-badge
  • readme-clipboard
  • readme-env-vars
  • readme-links
  • readme-matrix
  • readme-order
  • 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

22 Aug 2023 08:20PM UTC coverage: 57.655% (-0.2%) from 57.843%
5943658581

Pull #122

github

aymanbagabas
fix(output): export output writer

Termenv output can be a buffer, ssh session, a file, or anything that
implements the io.Writer interface.

In the case of an ssh session, the std ssh library returns a
io.ReadWriter for ssh sessions and the current Termenv implementation
makes it impossible to read terminal status reports since it expects a
file in return.

In addition, the TTY() function is confusing since it implies that the
returned value is a TTY. Which is not always true until we check that
using the isTTY() function.

Deprecate TTY() in favor of Writer() which simply returns the underlying
writer. The caller then can infer the type of the writer and decide what
to do with it.

This also deprecate parts of commit <a class=hub.com/muesli/termenv/commit/669c9abfb65169a7a146968e38702d3d80327a42">669c9abfb https://github.com/muesli/termenv/commit/669c9abfb65169a7a146968e38702d3d80327a42
Pull Request #122: fix(output): export output writer

56 of 56 new or added lines in 3 files covered. (100.0%)

531 of 921 relevant lines covered (57.65%)

8.83 hits per line

Relevant lines Covered
Build:
Build:
921 RELEVANT LINES 531 COVERED LINES
8.83 HITS PER LINE
Source Files on readwriter
  • Tree
  • List 12
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
5943658581 readwriter fix(output): export output writer Termenv output can be a buffer, ssh session, a file, or anything that implements the io.Writer interface. In the case of an ssh session, the std ssh library returns a io.ReadWriter for ssh sessions and the curre... Pull #122 22 Aug 2023 08:21PM UTC aymanbagabas github
57.65
5943573087 readwriter fix(output): export output writer Termenv output can be a buffer, ssh session, a file, or anything that implements the io.Writer interface. In the case of an ssh session, the std ssh library returns a io.ReadWriter for ssh sessions and the curre... Pull #122 22 Aug 2023 08:12PM UTC aymanbagabas github
57.65
5943573526 readwriter fix(output): export output writer Termenv output can be a buffer, ssh session, a file, or anything that implements the io.Writer interface. In the case of an ssh session, the std ssh library returns a io.ReadWriter for ssh sessions and the curre... Pull #122 22 Aug 2023 08:12PM UTC aymanbagabas github
57.65
5465100247 readwriter fix(output): export output writer Termenv output can be a buffer, ssh session, a file, or anything that implements the io.Writer interface. In the case of an ssh session, the std ssh library returns a io.ReadWriter for ssh sessions and the curre... push 05 Jul 2023 01:51PM UTC aymanbagabas github
57.65
5465100817 readwriter fix(output): export output writer Termenv output can be a buffer, ssh session, a file, or anything that implements the io.Writer interface. In the case of an ssh session, the std ssh library returns a io.ReadWriter for ssh sessions and the curre... Pull #122 05 Jul 2023 01:51PM UTC aymanbagabas github
57.65
4703947110 readwriter fix(output): export output writer push 14 Apr 2023 09:14PM UTC Ayman Bagabas github
57.65
4703947290 readwriter fix(output): export output writer Pull #122 14 Apr 2023 09:14PM UTC Ayman Bagabas github
57.65
4703930949 readwriter fix(output): export output writer Pull #122 14 Apr 2023 09:11PM UTC Ayman Bagabas github
57.65
4703930817 readwriter fix(output): export output writer push 14 Apr 2023 09:11PM UTC Ayman Bagabas github
57.65
4703602799 readwriter fix(output): export output writer Pull #122 14 Apr 2023 08:21PM UTC Ayman Bagabas github
57.65
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