mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
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.
This commit is contained in:
@@ -85,6 +85,7 @@ static int cmd_quell (PROGRAMMER *pgm, AVRPART *p, int argc, char *argv[]);
|
|||||||
#define _fo(x) offsetof(PROGRAMMER, x)
|
#define _fo(x) offsetof(PROGRAMMER, x)
|
||||||
|
|
||||||
struct command cmd[] = {
|
struct command cmd[] = {
|
||||||
|
{ "q", cmd_quit, _fo(open), "abbreviation for 'quit'" },
|
||||||
{ "dump", cmd_dump, _fo(read_byte_cached), "%s <memory> [<addr> <len> | <addr> ... | <addr> | ...]" },
|
{ "dump", cmd_dump, _fo(read_byte_cached), "%s <memory> [<addr> <len> | <addr> ... | <addr> | ...]" },
|
||||||
{ "read", cmd_dump, _fo(read_byte_cached), "alias for dump" },
|
{ "read", cmd_dump, _fo(read_byte_cached), "alias for dump" },
|
||||||
{ "write", cmd_write, _fo(write_byte_cached), "write <memory> <addr> <data>[,] {<data>[,]}" },
|
{ "write", cmd_write, _fo(write_byte_cached), "write <memory> <addr> <data>[,] {<data>[,]}" },
|
||||||
|
Reference in New Issue
Block a user