summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2023-05-02 21:00:41 -0400
committerSimon Ser <contact@emersion.fr>2023-05-09 12:40:41 +0200
commit31ebd85fe09701146b7275de1ec8c8e9ce3c15c6 (patch)
treec794f6e7a982a5ffc6d60f3aef0bbec66ce16f8a /completions/bash
parent876965f944f127a32c0265bcaa47f716d9e1451b (diff)
Separate input and auth state
This commit establishes separate state machines for auth state (whether the password submitted is being verified or is wrong) and input state (typing indicators and clear message -- things relevant to the state of the password being typed in, before it is submitted.) This makes it possible to display the auth state while updating the input state (for example, show that the previously submitted password is 'verifying' or 'wrong' while typing another.) The two state machines interact only when submitting a password. There is some interference with the rendering code -- a 'cleared' message from the input state machine supersedes verifying/wrong messages from the auth state machine; although since the 'clear' state has a shorter timeout than the auth 'invalid' state, this is unlikely to hide the 'wrong' message.
Diffstat (limited to 'completions/bash')
0 files changed, 0 insertions, 0 deletions