-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent terminal output routes re stdout and stderr #1130
Labels
enhancement
New feature or request
Comments
stefanrueger
changed the title
Terminal output uses stdout except for the
Inconsistent terminal output routes re stdout and stderr
Oct 17, 2022
parms
command; also errors go to stdout
I suggest the following solution:
|
See PR #1132 |
Ref: PR #1132 should fix this. Unfortunately pulling in readline is a bit complicated under macOS and MSYS2 mingw. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The parms command in the terminal has always used the normal AVRDUDE messaging system, printing to stderr, and now follows the
-qq
reduction of what is printed. This means that theparms
command can print nothing in the terminal:I think the terminal parms command should write to stdout (just like the other commands), and not follow the gradual reduction that
-qq
effects on themsg_level()
system.Trouble is that the library functions avr_display() and programmer_display() share the functions that the terminal
parms
command uses where we want gradual reduction with-qq
.In order to solve this discrepancy, we'd need to change the API for pgm->print_parm() to add a FILE * parameter that can be stdout or stderr.
Errors that happen in the terminal go partially to stdout (if the error is within the terminal parsing, eg) but errors of called library functions go to stderr. This is inconsistent. I suggest errors always go to stderr and normal (expected) terminal output goes to stdout.[edit - was already consistent, all errors go to stderr in terminal]Thoughts?
The text was updated successfully, but these errors were encountered: