From: Simon Tatham Date: Fri, 2 Feb 2024 23:16:31 +0000 (+0000) Subject: TODO: add 'please wait' display update idea. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=7851736b05035e49b72e95590bd8cfa1a6b2e8e0;p=mastodonochrome.git TODO: add 'please wait' display update idea. Ian suggested this, but I'd noticed it too, and just hadn't got round to either fixing it or (much easier) writing it down. --- diff --git a/TODO.md b/TODO.md index 96675a3..e246827 100644 --- a/TODO.md +++ b/TODO.md @@ -17,6 +17,17 @@ Again, this will need some persistent inter-activity state in a `RefCell` in the `TuiLogicalState`. Also some UI thought about what history should be shared with what. +## General UI improvements + +When a keystroke requires a network transaction, the transaction often +takes place in a `handle_keypress()` method, which means the display +isn't updated until that method returns, because only `Tui` can do +display updates. But some network transactions take noticeable time, +so it would be nice to do an immediate display update to indicate that +the keystroke was received and something is being done. This may +involve actual code restructuring, since in Rust it's not trivial to +just casually call back to the top-level thing. + ## Error handling improvements Error Log entries could usefully include various extra detail: