This frees up 'x' for xmodem transfers later.

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(-)
From 72bed07f334b9ca02f43e719319f03f1738cc017 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <e...@google.com>
Date: Thu, 2 Nov 2023 14:54:40 -0700
Subject: [PATCH] microcom: move from e[x]it to [q]uit.

This frees up 'x' for xmodem transfers later.

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.42.0.869.gea05f2083d-goog

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to