Skip to content

feat: add Ctrl+C cancel hint to persistent screens and Exit option to list prompts#200

Draft
Swastik-Prakash1 wants to merge 1 commit intometacall:masterfrom
Swastik-Prakash1:fix/ctrl-c-cancel-hint
Draft

feat: add Ctrl+C cancel hint to persistent screens and Exit option to list prompts#200
Swastik-Prakash1 wants to merge 1 commit intometacall:masterfrom
Swastik-Prakash1:fix/ctrl-c-cancel-hint

Conversation

@Swastik-Prakash1
Copy link

Implements #154 based on maintainer feedback from the closed PR #173.

Changes

  • src/cli/inspect.ts: Shows Press Ctrl+C to cancel at the bottom of
    the persistent table loop (the for(;;) loop that refreshes every 5s)
  • src/logs.ts: Shows Press Ctrl+C to cancel in the persistent logs
    loop (the while loop that polls until status = ready)
  • src/cli/selection.ts: Adds an "Exit" option to list-type prompts
    (login, plan, container selection) for graceful exit without Ctrl+C

Approach

Based on @viferga's review on #173:

  • Ctrl+C hint shown only on persistent/long-running screens, not simple input prompts
  • List prompts get an "Exit" option instead, for clean graceful exit
  • Message displayed at bottom of output, after table/log content

Fixes #154

… list prompts

- Show 'Press Ctrl+C to cancel' at bottom of inspect table (persistent loop)
- Show 'Press Ctrl+C to cancel' in logs output (persistent while loop)
- Add 'Exit' option to loginSelection, planSelection, listSelection prompts
- Follows maintainer feedback from PR metacall#173

Fixes metacall#154
@Swastik-Prakash1
Copy link
Author

Screenshot 2026-03-04 185804

@viferga
Copy link
Member

viferga commented Mar 9, 2026

@Swastik-Prakash1 can you show how the exit option looks? I see you have also added exit options.

@viferga viferga marked this pull request as draft March 9, 2026 20:21
@Swastik-Prakash1
Copy link
Author

image Here's how the Exit option looks on the login selection screen. Same pattern applies to plan selection and deployment list screens. Let me know if you'd like any changes!

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.

feat: Any interactive screen should show: Ctrl+C for cancel.

2 participants