We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I use another version of ptpython and have noticed that the result of PythonRepl does not take care of the color_depth.
PythonRepl
color_depth
def print_formatted_text( self, formatted_text: StyleAndTextTuples, end: str = "\n" ) -> None: print_formatted_text( FormattedText(formatted_text), style=self._current_style, style_transformation=self.style_transformation, include_default_pygments_style=False, output=self.app.output, end=end, )
Looking at your main code code, now not it use a OutputPrinter but the result is the same.
OutputPrinter
Is there a reason not to use color_depth for printing the result (while the min/max intensity are propagated through self.style_transformation)?
self.style_transformation
It's particularly weird when the color_depth = 1bit.
color_depth = 1bit
The fix was easy, but have to be done in a different way in your main branch.
def print_formatted_text( self, formatted_text: StyleAndTextTuples, end: str = "\n" ) -> None: print_formatted_text( FormattedText(formatted_text), style=self._current_style, style_transformation=self.style_transformation, + color_depth=self.color_depth, include_default_pygments_style=False, output=self.app.output, end=end, )
What do you think?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I use another version of ptpython and have noticed that the result of
PythonRepl
does not take care of thecolor_depth
.Looking at your main code code, now not it use a
OutputPrinter
but the result is the same.Is there a reason not to use
color_depth
for printing the result (while the min/max intensity are propagated throughself.style_transformation
)?It's particularly weird when the
color_depth = 1bit
.The fix was easy, but have to be done in a different way in your main branch.
What do you think?
The text was updated successfully, but these errors were encountered: