shell: improved shell_prompt_change function
Shell will store only pointer to the prompt string instead of copying it to the RAM buffer. It will save RAM memory and it will simplify implementation of a new feature: "select" command. When a command will be selected than shell will display command syntax as a prompt. Removed obsolete ASSERT check in a static function. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
parent
9ff319dc52
commit
090ef041e8
6 changed files with 22 additions and 35 deletions
|
@ -37,12 +37,6 @@ config SHELL_BACKSPACE_MODE_DELETE
|
|||
Some terminals send code: 0x08 (backspace) other 0x7F (delete). When
|
||||
this option is set shell will expect 0x7F for backspace key.
|
||||
|
||||
config SHELL_PROMPT_LENGTH
|
||||
int "Maximum prompt length"
|
||||
default 16
|
||||
help
|
||||
Maximum length of prompt name in bytes.
|
||||
|
||||
config SHELL_CMD_BUFF_SIZE
|
||||
int "Shell command buffer size"
|
||||
default 256
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue