Skip to content

Stop echoing the screensaver's exit key into the corner - #16596

Merged
dhh merged 1 commit into
quattrofrom
screensaver-no-echo
Oct 25, 2026
Merged

dhh merged 1 commit into
quattrofrom
screensaver-no-echo

Conversation

@dhh

@dhh dhh commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

The screensaver waits for a key with `read -n1`, which leaves tty echo on. ttfx runs with `--no-restore-cursor`, so the cursor sits in the bottom-left corner and the key you press to stop the screensaver flashes there for a frame or two before the window closes.

Turn echo off once at startup with `stty -echo`. `read -s` alone wouldn't cover keys typed between reads.

Verified by recording the screen while stopping the screensaver with a keypress: the echoed character was visible before the change and is gone after it.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dhh
dhh merged commit 7aae3f5 into quattro Oct 25, 2026
2 checks passed
@dhh
dhh deleted the screensaver-no-echo branch October 25, 2026 10:17
@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The change appears safe to merge.

Summary

The screensaver now disables terminal echo at startup.

  • The screensaver stops showing the key that closes it.

Reviews (1) · Last reviewed commit: "Stop echoing the screensaver's exit key ..." · Reviewed by Greptile

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.

2 participants