gen_key hangs on first logger.input() #2

Closed
opened 2023-06-29 02:13:57 +02:00 by trent · 2 comments

Self-explanatory title.

kdt > ./target/debug/kdt -g
(info) Type your name below. Note that this will be visible to everyone who imports your public key.
Trent
^C

No clue what's up here. I use zsh and it seems like Logger isn't very good at user input. Maybe use text_io.

Self-explanatory title. ``` kdt > ./target/debug/kdt -g (info) Type your name below. Note that this will be visible to everyone who imports your public key. Trent ^C ``` No clue what's up here. I use zsh and it seems like Logger isn't very good at user input. Maybe use text_io.
Owner

Sorry, I should've made it clear in the info log that Logger::input only closes the input stream once you send the interrupt, which is Ctrl-D in this case (not Ctrl-C). Other examples of this can be found by searching Ctrl-D in src/main.rs, this seems to be the only one I left out when I changed the way user input is processed.

Sorry, I should've made it clear in the `info` log that `Logger::input` only closes the input stream once you send the interrupt, which is `Ctrl-D` in this case (not `Ctrl-C`). Other examples of this can be found by searching `Ctrl-D` in `src/main.rs`, this seems to be the only one I left out when I changed the way user input is processed.
Owner

Fixed in commit 71d1945466

Fixed in commit 71d1945466
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mirai/kdt#2
No description provided.