From 036b5cc790efd1d9710bd20998845a0af0d28829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 1 Apr 2021 20:47:35 +0200 Subject: [PATCH] Updated to new major rich version --- CurseBreaker.py | 3 ++- requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CurseBreaker.py b/CurseBreaker.py index e83efd0..0cb3f7b 100644 --- a/CurseBreaker.py +++ b/CurseBreaker.py @@ -23,6 +23,7 @@ from rich.table import Table from rich.panel import Panel from rich.console import Console +from rich.control import Control from rich.progress import Progress, BarColumn from rich.traceback import Traceback, install from multiprocessing import freeze_support @@ -777,7 +778,7 @@ def c_wago_update(self, _, verbose=True): for aura in statusplater[1]: self.console.print(f'[link={aura[1]}]{aura[0]}[/link]', highlight=False) else: - self.console.control('\033[A') + self.console.control(Control.move(x=0, y=-1)) if len(statuswa[0]) > 0: self.console.print(f'\n[green]The number of outdated WeakAuras:[/green] ' f'{len(statuswa[0])}', highlight=False) diff --git a/requirements.txt b/requirements.txt index 58c3ecc..8cb57c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,5 @@ pyperclip requests markdown bbcode -rich +rich>10 lupa \ No newline at end of file