Skip to content

Add inline height display during movement operations#21

Merged
tzermias merged 1 commit into
mainfrom
feature/add-progress-display
Feb 24, 2026
Merged

Add inline height display during movement operations#21
tzermias merged 1 commit into
mainfrom
feature/add-progress-display

Conversation

@tzermias

Copy link
Copy Markdown
Owner

Summary

Adds real-time height feedback to goto-height and goto-memory commands.
The current height is printed inline every 200ms, overwriting the same
terminal line, so users can see the desk moving in real time.

Output

$ deskctl goto-height 100
Height: 78 cm
Height: 85 cm
Height: 92 cm
Height: 100 cm

Each line overwrites the previous one via \r. On context cancellation
(Ctrl+C) the line is terminated with \n before the cancellation message.

Changes

  • pkg/jiecang/height.go: print \rHeight: X cm on each 200ms tick
    inside GoToHeight()
  • pkg/jiecang/memory.go: same pattern inside GoToMemory()

No new dependencies, no API signature changes, no new types.

Test Plan

  • All tests pass (make test)
  • Code formatted (make fmt)
  • Static analysis clean (make vet)
  • Binary builds successfully (make build)

🤖 Generated with Claude Code

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>
@tzermias tzermias merged commit bec9888 into main Feb 24, 2026
1 check passed
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