rndusr / stig

TUI and CLI for the BitTorrent client Transmission
GNU General Public License v3.0
554 stars 24 forks source link

Redraw screen in InteractiveCmd #233

Closed rsekman closed 1 year ago

rsekman commented 1 year ago

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.