Repository navigation
Conversation
7e772e4 to
ee489c2
Compare
|
I'd prefer not to add more I'm not particularly bothered by the override in the theme. I don't think enough things would want to override this to justify the new attribute. Perhaps we should consider why the default echo doesn't show control input? Perhaps we can add it here and remove the override that way? |
Yes, I'm OK to explore that direction instead. I don't have a real use-case, just stumble upon it while cleaning my own re-implementation of the Question is, should we translate all control bytes to caret-based notation or should we just do click/src/click/_termui_impl.py Lines 869 to 877 in 06b2a67 |
|
@kdeldycke I also think not more customization here would be good. |
ee489c2 to
661e157
Compare
|
Just reworked that PR and pushed it a bit: it now integrates directly the modifications from
This does not propose a documented point of customization, but change the behavior of the |
CliRunner.echo_stdin_class to override the <stdin> echo wrapper\x04 and \x1a input bytes as ^D and ^Z in CliRunner
661e157 to
f8c5a8e
Compare
|
Just retargeted to 8.6.0 . This PR is ready for a review. |
This PR change
CliRunnerto translate the control bytes and render them differently on output:<stdin>byte<stdout>as\x04^D\nCtrl+Don Unix\x1a^Z\nCtrl+Zon WindowsIt also no longer passes these bytes to the command.
As this introduce behavioral changes, it targets 8.6.0.
This will remove an hard-coded patch in
pallets-sphinx-themesand a follow-up PR is maintained at pallets/pallets-sphinx-themes#133 so you can see the benefits of this change.