Title: Handle `cerr` in terminal pager · Issue #49 · QuantStack/git2cpp · GitHub
Open Graph Title: Handle `cerr` in terminal pager · Issue #49 · QuantStack/git2cpp
X Title: Handle `cerr` in terminal pager · Issue #49 · QuantStack/git2cpp
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...
Open Graph 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...
X 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 writte...
Opengraph URL: https://github.com/QuantStack/git2cpp/issues/49
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle `cerr` in terminal pager","articleBody":"Need to handle `cerr` as well as `cout` in terminal pager. Discussion from #46:\n\nIan:\nWe do need a strategy for what to do with cerr, but I don't know what is best yet.\n\nCurrently 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:\n\n1. 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.\n2. 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.\n3. 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.\n\nJohan:\nI 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?","author":{"url":"https://github.com/ianthomas23","@type":"Person","name":"ianthomas23"},"datePublished":"2025-10-21T07:38:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/49/git2cpp/issues/49"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:df80966c-5f67-6084-a472-ed2b29397409 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE06:3A114F:A8FFA9:E4E5B6:6971C8F5 |
| html-safe-nonce | 151a1c5b9c01121c78aab8fba00ef2077549dc4dd1027ac242fd0a538a0aa38e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTA2OjNBMTE0RjpBOEZGQTk6RTRFNUI2OjY5NzFDOEY1IiwidmlzaXRvcl9pZCI6IjE2NDgxMTE3MTQ5NzgzNTEzNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d87485db219b803cebbc9d729408cb6ed9857d7c4ada6af712240100988ad83f |
| hovercard-subject-tag | issue:3535325025 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/QuantStack/git2cpp/49/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18cb98a5f69c4e21136fc31f20bd7a9321f2d2d3df36c50a99225b130f5fa80f/QuantStack/git2cpp/issues/49 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18cb98a5f69c4e21136fc31f20bd7a9321f2d2d3df36c50a99225b130f5fa80f/QuantStack/git2cpp/issues/49 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ianthomas23 |
| hostname | github.com |
| expected-hostname | github.com |
| None | ac615aa66802dad9a938c6abe95edf09ee43c0c7f508315b64b08612858ef32e |
| turbo-cache-control | no-preview |
| go-import | github.com/QuantStack/git2cpp git https://github.com/QuantStack/git2cpp.git |
| octolytics-dimension-user_id | 19627246 |
| octolytics-dimension-user_login | QuantStack |
| octolytics-dimension-repository_id | 988433538 |
| octolytics-dimension-repository_nwo | QuantStack/git2cpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 988433538 |
| octolytics-dimension-repository_network_root_nwo | QuantStack/git2cpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6b618569a5f93e0b31f97f620112341421ef5f69 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width