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:
Krzysztof Chruscinski 2020-05-13 07:49:57 +02:00 committed by Carles Cufí
commit 1fb61ea01e
5 changed files with 21 additions and 14 deletions

View file

@ -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