GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: don't print to stdout when initializing console fails on Windows by muesli · Pull Request #66 · containerd/console

Conversation

@muesli

@muesli muesli commented Oct 21, 2022

Copy link
Copy Markdown
Contributor

When stdin/err/out are redirected, console mode can't be changed. That's often expected & acceptable however, so we shouldn't print errors to stdout.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hay-kot, michaeltlombardi, 0xdhrv, CaelFrost, WithHolm, aymanbagabas, and Delta456 reacted with thumbs up emoji
All reactions
  • 👍 7 reactions
@muesli muesli mentioned this pull request Oct 21, 2022
Windows / PowerShell Functionality charmbracelet/gum#32
Closed
@muesli
muesli force-pushed the windows-printf branch from e4a9c91 to 984533f Compare October 21, 2022 09:45
caarlos0
caarlos0 approved these changes Oct 21, 2022
View reviewed changes
@TheReptar TheReptar mentioned this pull request Nov 29, 2022
Update README.md PowerShell Script antonmedv/walk#54
Merged
@0xdhrv 0xdhrv mentioned this pull request Feb 1, 2023
Gum for Git Bash / Cygwin charmbracelet/gum#228
Open
@WithHolm WithHolm mentioned this pull request Feb 12, 2023
windows: Why initStdios ignores GetConsoleMode errors? #58
Open
@muesli muesli mentioned this pull request Mar 7, 2023
chore: switch to soft fork of containerd/console charmbracelet/bubbletea#688
Closed
kzys
kzys approved these changes Mar 7, 2023
View reviewed changes
@kzys

kzys commented Mar 7, 2023

Copy link
Copy Markdown
Member

@kevpar @dcantah PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dcantah
dcantah reviewed Mar 7, 2023
View reviewed changes
Comment thread console_windows.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@muesli
muesli force-pushed the windows-printf branch from 984533f to 2000a64 Compare March 8, 2023 13:07
dcantah
dcantah reviewed Mar 9, 2023
View reviewed changes
Comment thread console_windows.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

dcantah
dcantah approved these changes Mar 9, 2023
View reviewed changes

@dcantah dcantah left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to get rid of the branches/commented out errors with a little note that we can explore handling redirected io via the conout/in shenanigans, but LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@muesli
fix: don't print to stdout when initializing console fails on Windows
7b7885a
When stdin/err/out are redirected, console mode can't be changed.
That's often expected & acceptable however, so we shouldn't print
errors to stdout.

Signed-off-by: Christian Muehlhaeuser <[email protected]>
@muesli
muesli force-pushed the windows-printf branch from 2000a64 to 7b7885a Compare March 10, 2023 10:12
@muesli

muesli commented Mar 10, 2023

Copy link
Copy Markdown
Contributor Author

I'd prefer to get rid of the branches/commented out errors with a little note that we can explore handling redirected io via the conout/in shenanigans, but LGTM!

Done. PTAL!

dcantah reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dcantah
dcantah approved these changes Mar 13, 2023
View reviewed changes

@dcantah dcantah left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM again. @kzys PTAL/merge if you're alright with this, thanks @muesli

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
estesp
estesp approved these changes Mar 13, 2023
View reviewed changes
@estesp
estesp merged commit 1ae8d48 into containerd:main Mar 13, 2023
@muesli
muesli deleted the windows-printf branch March 14, 2023 06:34
This was referenced Feb 2, 2024
vendor: github.com/containerd/console 8f6c4e4 docker/buildx#2238
Merged
vendor: github.com/containerd/console v1.0.4 moby/buildkit#4621
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@kzys kzys kzys approved these changes
@estesp estesp estesp approved these changes
@dcantah dcantah dcantah approved these changes
+1 more reviewer
@caarlos0 caarlos0 caarlos0 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

Pull Request Review
Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@muesli @kzys @caarlos0 @estesp @dcantah
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.