Skip to content

Fix Unix terminal query input - #49

Merged
mattn merged 1 commit into
masterfrom
fix/query-terminal-tty
Jun 26, 2026
Merged

Fix Unix terminal query input#49
mattn merged 1 commit into
masterfrom
fix/query-terminal-tty

Conversation

@mattn

@mattn mattn commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

Fix Unix terminal capability queries to use /dev/tty for terminal I/O instead of reading from stdout.

Root cause

The Unix implementation wrote the query to stdout and then attempted to read the response from stdout. Terminal responses are read from the controlling terminal input, so detection could fail even when the terminal supported the queried capability.

Validation

  • go test ./...
  • go vet ./...

@mattn
mattn merged commit a414585 into master Jun 26, 2026
2 checks passed
@mattn
mattn deleted the fix/query-terminal-tty branch June 26, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant