Handle `cerr` in terminal pager
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 30/100
Piste de recherche
L’issue n’identifie ni fichiers, ni tests, ni point d’entrée spécifique. Commencez par localiser l’implémentation du pager du terminal et lire la discussion de #46, puis déterminez quelle stratégie de gestion de cerr le projet accepte. C’est terminé lorsque cerr est géré conformément à cette décision sans bloquer le travail sur le pager.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Need to handle cerr as well as cout in terminal pager. Discussion from #46:
Ian:
We do need a strategy for what to do with cerr, but I don't know what is best yet.
Currently cerr will be written to the normal terminal buffer, so it won't be seen whilst the alternative buffer is being used but it reappears when the alternative buffer is disabled. This is perhaps not a good solution, but I don't think it is too bad for a first implementation. Some other options:
- Capture it and sent it to the same place as cout, it will appear in the output flow in the alternative buffer. We'd probably need to colour it to make is easily visible as it could be anywhere.
- Capture it and display it at the bottom of the alternative buffer for better visibility, but then there might be quite a lot of information displayed.
- Capture it and if anything at all is written to it we could avoid using the pager at all, just display the errors in the normal terminal flow.
Johan:
I have a preference for option 1, but I think we can discuss it in a dedicated issue and solve it in a dedicated PR so that it does not block this one, WDYT?
- Langage dominant
- C++
- Étoiles
- 6
- Forks
- 5
- Merge moyen
- 4 h 22 min
- PR mergées (30 j)
- 4
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
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 QuantStack/git2cpp
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
QuantStack/git2cpp#134 ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 42/100
QuantStack/git2cpp#131 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
QuantStack/git2cpp#62 ·
-
Support regex in terminal pager Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
QuantStack/git2cpp#51 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
QuantStack/git2cpp#50 ·
Toutes les issues de QuantStack/git2cpp
Issues similaires
-
Website Doc Typo Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
-
Difficulté 1/5 1-3 heures Accessibilité débutants 92/100
autowarefoundation/autoware_universe#13413 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
automated-analysis bug memory-safety
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100