Add inline height display during movement operations#21
Merged
Conversation
Shows real-time height feedback in the terminal during goto-height and goto-memory commands, updating every 200ms in place. Output example: Height: 78 cm (overwrites same line each tick) Height: 85 cm Height: 100 cm (final line, followed by newline) Changes: - GoToHeight: print \rHeight: X cm on each 200ms ticker tick; finalise with newline on completion and \n before cancellation message - GoToMemory: same pattern No new dependencies, no API changes, no new types. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
Adds real-time height feedback to
goto-heightandgoto-memorycommands.The current height is printed inline every 200ms, overwriting the same
terminal line, so users can see the desk moving in real time.
Output
Each line overwrites the previous one via
\r. On context cancellation(Ctrl+C) the line is terminated with
\nbefore the cancellation message.Changes
pkg/jiecang/height.go: print\rHeight: X cmon each 200ms tickinside
GoToHeight()pkg/jiecang/memory.go: same pattern insideGoToMemory()No new dependencies, no API signature changes, no new types.
Test Plan
make test)make fmt)make vet)make build)🤖 Generated with Claude Code