Skip to content
Permalink
Browse files
Fix recording console for new rich-click 1.5 (#24611)
  • Loading branch information
potiuk committed Jun 22, 2022
1 parent e2f1950 commit 8231add0a0d12a1a5f2de13de7e4eb5ac785f839
Showing 1 changed file with 3 additions and 1 deletion.
@@ -47,7 +47,9 @@ def save_ouput_as_svg():

class RecordingConsole(rich.console.Console):
def __init__(self, **kwargs):
super().__init__(record=True, width=width_int, force_terminal=True, **kwargs)
kwargs["force_terminal"] = True
kwargs["width"] = width_int
super().__init__(record=True, **kwargs)
global help_console
help_console = self

0 comments on commit 8231add

Please sign in to comment.