Repository navigation
Stop echoing the screensaver's exit key into the corner - #16596
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Low impact] The change appears safe to merge. SummaryThe screensaver now disables terminal echo at startup.
Reviews (1) · Last reviewed commit: "Stop echoing the screensaver's exit key ..." · Reviewed by Greptile |
20 of 34 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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