From e45195d64362a2d8e3ea9206533b7b6c5b91bbaa Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 1 Jan 2023 22:33:30 +0100 Subject: [PATCH] Add a "q" command to the terminal "q" used to be a unique abbrevation for "quit" before the introduction of the "quell" command, and it was an easy way to exit terminal mode. By adding it as an explicit command (must be before all longer commands starting with "q"), this functionality is regained. --- src/term.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/term.c b/src/term.c index c399c3e4..56bcae9d 100644 --- a/src/term.c +++ b/src/term.c @@ -85,6 +85,7 @@ static int cmd_quell (PROGRAMMER *pgm, AVRPART *p, int argc, char *argv[]); #define _fo(x) offsetof(PROGRAMMER, x) struct command cmd[] = { + { "q", cmd_quit, _fo(open), "abbreviation for 'quit'" }, { "dump", cmd_dump, _fo(read_byte_cached), "%s [ | ... | | ...]" }, { "read", cmd_dump, _fo(read_byte_cached), "alias for dump" }, { "write", cmd_write, _fo(write_byte_cached), "write [,] {[,]}" },