Skip to content

fix: don't listen for key events when stdin is not a terminal - #134

Merged
dignifiedquire merged 1 commit into
n0-computer:mainfrom
SAY-5:no-tty-no-keyevents
Jul 25, 2026
Merged

dignifiedquire merged 1 commit into
n0-computer:mainfrom
SAY-5:no-tty-no-keyevents

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Running sendme send without a tty (e.g. in a plain docker container) panics with reader source not set from crossterm as soon as the event stream is polled. Skip the keyboard listener when stdin is not a terminal, since there are no key presses to wait for anyway.

Fixes #132

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@n0bot n0bot Bot added this to iroh Jul 22, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Jul 22, 2026
@dignifiedquire
dignifiedquire merged commit 8dda1e5 into n0-computer:main Jul 25, 2026
14 checks passed
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Sendme crashes in non-tty environment

3 participants