Show the menus on the alternate screen
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- javascript, node.js
- Domaine
- cli
Piste de recherche
Start by reading the existing menu resize handling and the approach tried in #59, then trace how scripts run and how normal exits, Ctrl+C, and errors are handled. Check the tests and README alongside the touched lib/ files. Done means the alternate screen handles resizing and script output as specified, tests and coverage meet the stated requirements, documentation is updated, and the roadmap item is ticked.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Roadmap: A polished interface
Show the menus on the terminal's alternate screen (\x1b[?1049h), as less and vim do, and leave it before a script runs and on every exit path (normal exit, Ctrl+C, errors). Resizing the window can then redraw the whole screen, header included.
Today only the list redraws itself on resize. The header above it is drawn once per screen, so a terminal made narrower rewraps it into pieces. Clearing and redrawing the screen on resize was tried in #59 and dropped: clearing only reaches the visible part of the window, so each redraw left a duplicate header in the scrollback.
The list's page size should also count the lines drawn above it, so the screen never grows taller than the window.
Done when
- Resizing the window while a menu is open never leaves broken lines or duplicate headers, in Windows Terminal, the classic console, macOS Terminal, iTerm2 and a Linux terminal
- Script output stays in the normal screen, so it remains visible after returning to the menu
- Tests cover the change, and coverage stays at or above 90% of lines
- The README describes the change, and the header comment of each touched
lib/file is up to date - CI passes on Windows, macOS and Linux with Node 22, 24 and 26
- The roadmap item is ticked
The milestone is done when: Screenshots of the main screens look correct in Windows Terminal, PowerShell, macOS Terminal, iTerm2 and a Linux terminal, at 80 and 120 columns, with and without NO_COLOR.
- Langage dominant
- JavaScript
- Étoiles
- 0
- Forks
- 0
- Merge moyen
- 56 min
- PR mergées (30 j)
- 23
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de modulane/dev-workspace-cli
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
modulane/dev-workspace-cli#26 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 22/100
modulane/dev-workspace-cli#54 ·
Les mainteneurs répondent en général sous 1 jour
-
Write the 1.0 documentationOuverteenhancement help wanted
Difficulté 4/5 3-5 jours Accessibilité débutants 43/100
modulane/dev-workspace-cli#53 ·
Les mainteneurs répondent en général sous 1 jour
-
Clean up legacy behaviourOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
modulane/dev-workspace-cli#52 ·
Les mainteneurs répondent en général sous 1 jour
-
Freeze the public interfaceOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
modulane/dev-workspace-cli#51 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de modulane/dev-workspace-cli
Issues similaires
-
Missing ACL in OpenWRT v25.12.6Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
area: quality enhancement priority: should
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
TheOdinProject/curriculum#31509 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
d-dev0101/open-sea-skin#25 · 1 commentaire ·
-
type:docs
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
nightgauge/nightgauge#2836 ·
Les mainteneurs répondent en général sous 1 jour