Due to the urwid update that made the redraw_screen decorator necessary, the prompt window of interactive appears with a noticeable delay. To fix this we need to decorate InteractiveCmd.run , but it is async. So we need to rewrite the decorator to work on async methods. I don't super like this implementation because it is not very DRY, but async has to appear both outside and inside the definition of wrapper and this was honestly the best I could do.
Due to the urwid update that made the
redraw_screen
decorator necessary, the prompt window ofinteractive
appears with a noticeable delay. To fix this we need to decorateInteractiveCmd.run
, but it isasync
. So we need to rewrite the decorator to work onasync
methods. I don't super like this implementation because it is not very DRY, butasync
has to appear both outside and inside the definition ofwrapper
and this was honestly the best I could do.