shell: Move default terminal width and height to Kconfig
Default values were fixed in the code. Moved to Kconfig to allow customized configuration. Custom configuration may be used to prevent line breaking injected on terminal width. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
5a3d44256e
commit
1fb61ea01e
5 changed files with 21 additions and 14 deletions
|
@ -47,6 +47,16 @@ config SHELL_PRINTF_BUFF_SIZE
|
|||
It is working like stdio buffering in Linux systems
|
||||
to limit number of peripheral access calls.
|
||||
|
||||
config SHELL_DEFAULT_TERMINAL_WIDTH
|
||||
int "Default terminal width"
|
||||
default 80
|
||||
help
|
||||
Default terminal width is used to break lines.
|
||||
|
||||
config SHELL_DEFAULT_TERMINAL_HEIGHT
|
||||
int "Default terminal height"
|
||||
default 24
|
||||
|
||||
config SHELL_ARGC_MAX
|
||||
int "Maximum arguments in shell command"
|
||||
default 12
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue