Skip to content

fix: darwin build — split terminal raw mode into platform files#17

Merged
peg merged 1 commit into
mainfrom
fix/darwin-terminal-build
Mar 18, 2026
Merged

fix: darwin build — split terminal raw mode into platform files#17
peg merged 1 commit into
mainfrom
fix/darwin-terminal-build

Conversation

@peg

@peg peg commented Mar 18, 2026

Copy link
Copy Markdown
Owner

CI failed on darwin/amd64 and darwin/arm64: syscall.TCGETS/TCSETS are Linux-only constants.

Split terminal raw mode into platform-specific files:

  • terminal_linux.go — uses TCGETS/TCSETS
  • terminal_darwin.go — uses TIOCGETA/TIOCSETA
  • terminal_other.go — stub returning an error for unsupported platforms

Verified: go build passes on linux/amd64, darwin/amd64, darwin/arm64.

syscall.TCGETS/TCSETS are Linux-only — darwin build failed in CI.
Split into terminal_linux.go, terminal_darwin.go, terminal_other.go.
darwin uses TIOCGETA/TIOCSETA ioctl constants instead.
@peg
peg merged commit f7effd2 into main Mar 18, 2026
1 check passed
@peg
peg deleted the fix/darwin-terminal-build branch March 18, 2026 05:29
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