Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rio is truecolor, xterm is ansi #174

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion termenv_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
)

const (
// timeout for OSC queries

Check failure on line 17 in termenv_unix.go

View workflow job for this annotation

GitHub Actions / lint-soft

Comment should end in a period (godot)
OSCTimeout = 5 * time.Second
)

Expand Down Expand Up @@ -53,11 +53,12 @@
case
"alacritty",
"contour",
"rio",
"wezterm",
"xterm-ghostty",
"xterm-kitty":
return TrueColor
case "linux":
case "linux", "xterm":
return ANSI
}

Expand Down Expand Up @@ -130,7 +131,7 @@
continue
}
if err != nil {
return err

Check failure on line 134 in termenv_unix.go

View workflow job for this annotation

GitHub Actions / lint-soft

error returned from external package is unwrapped: sig: func golang.org/x/sys/unix.Select(nfd int, r *golang.org/x/sys/unix.FdSet, w *golang.org/x/sys/unix.FdSet, e *golang.org/x/sys/unix.FdSet, timeout *golang.org/x/sys/unix.Timeval) (n int, err error) (wrapcheck)
}
if n == 0 {
return fmt.Errorf("timeout")
Expand All @@ -152,7 +153,7 @@
var b [1]byte
n, err := o.TTY().Read(b[:])
if err != nil {
return 0, err

Check failure on line 156 in termenv_unix.go

View workflow job for this annotation

GitHub Actions / lint-soft

error returned from interface method should be wrapped: sig: func (io.Reader).Read(p []byte) (n int, err error) (wrapcheck)
}

if n == 0 {
Expand Down
Loading