chiark / gitweb /
TODO: add 'please wait' display update idea.
authorSimon Tatham <anakin@pobox.com>
Fri, 2 Feb 2024 23:16:31 +0000 (23:16 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 2 Feb 2024 23:16:31 +0000 (23:16 +0000)
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.

TODO.md

diff --git a/TODO.md b/TODO.md
index 96675a34f0813e39be8463dc39e6c6f8d71cc70b..e246827ae6a6e8cb7ce56a186d5058b3d4185420 100644 (file)
--- 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: