From 2bc5daeb78343a4c33e651248d7981de38f5da41 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 2 Nov 2023 14:54:40 -0700 Subject: [PATCH] microcom: move from e[x]it to [q]uit. Also, if we're going to have a single line of help, switch to the more common format for such prompts (and, if nothing else, fix the previously inconsistent spacing between options and make it clear what new options should look like). --- toys/net/microcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toys/net/microcom.c b/toys/net/microcom.c index 5d8d425b..770afa0b 100644 --- a/toys/net/microcom.c +++ b/toys/net/microcom.c @@ -37,8 +37,8 @@ static void handle_esc(void) { char input; - xputsn("\r\nb) break p) paste file x) exit: "); - if (read(0, &input, 1)<1 || input == 'D'-64 || input == 'x') { + xputsn("\r\n[b]reak, [p]aste file, [q]uit: "); + if (read(0, &input, 1)<1 || input == 'D'-64 || input == 'q') { xputs("exit\r"); xexit(); } -- 2.39.2