Skip to content

Commit

Permalink
Clean banners properly when several of them are showing
Browse files Browse the repository at this point in the history
  • Loading branch information
StarQTius committed Oct 1, 2023
1 parent 35a3a00 commit d131207
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/shelltools/utility/synchronized_ostream.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ async def update_banner(
if not self.__use_rawinput:
return

with self:
self.__ostream.write(_below(str(banner)))
rle.forced_update_display()

while not stop_event.is_set():
with self:
self.__ostream.write(
Expand All @@ -167,7 +163,7 @@ async def update_banner(
await aio.sleep(refresh_delay_s)

with self:
self.__ostream.write(_below(position=self.__banners.index(banner)))
self.__ostream.write(_below(position=len(self.__banners) - 1))
rle.forced_update_display()

self.__banners.remove(banner)
Expand Down

0 comments on commit d131207

Please sign in to comment.