Revision 0c28913b core/src/aos_system.c
core/src/aos_system.c | ||
---|---|---|
383 | 383 |
// if the user wants to retrieve the shell configuration |
384 | 384 |
else { |
385 | 385 |
chprintf(stream, "current shell configuration:\n"); |
386 |
chprintf(stream, " prompt text: %s\n",
|
|
386 |
chprintf(stream, "\tprompt text: %s\n",
|
|
387 | 387 |
(aos.shell.prompt != NULL) ? aos.shell.prompt : "n/a"); |
388 | 388 |
char time[10]; |
389 | 389 |
switch (aos.shell.config & (AOS_SHELL_CONFIG_PROMPT_UPTIME | AOS_SHELL_CONFIG_PROMPT_DATETIME)) { |
... | ... | |
394 | 394 |
default: |
395 | 395 |
strcpy(time, "no time"); break; |
396 | 396 |
} |
397 |
chprintf(stream, " prompt style: %s, %s\n",
|
|
397 |
chprintf(stream, "\tprompt style: %s, %s\n",
|
|
398 | 398 |
(aos.shell.config & AOS_SHELL_CONFIG_PROMPT_MINIMAL) ? "minimal" : "text", |
399 | 399 |
time); |
400 |
chprintf(stream, " input method: %s\n",
|
|
400 |
chprintf(stream, "\tinput method: %s\n",
|
|
401 | 401 |
(aos.shell.config & AOS_SHELL_CONFIG_INPUT_OVERWRITE) ? "replace" : "insert"); |
402 |
chprintf(stream, " text matching: %s\n",
|
|
402 |
chprintf(stream, "\ttext matching: %s\n",
|
|
403 | 403 |
(aos.shell.config & AOS_SHELL_CONFIG_MATCH_CASE) ? "case sensitive" : "case insensitive"); |
404 | 404 |
retval = AOS_OK; |
405 | 405 |
} |
Also available in: Unified diff