shell: allow disabling VT100 commands
Allow the user to disable VT100 commands to have a plain shell without terminal emulation in order to avoid a lot of garbage ASCII characters in shell output. Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
This commit is contained in:
parent
6c9945aafa
commit
75a2ef8fc0
3 changed files with 21 additions and 2 deletions
|
@ -111,8 +111,15 @@ config SHELL_START_OBSCURED
|
|||
If enabled, don't echo actual character, but echo * instead.
|
||||
This is used for login prompts.
|
||||
|
||||
config SHELL_VT100_COMMANDS
|
||||
bool "Enable VT100 commands in shell"
|
||||
default y
|
||||
help
|
||||
Enables VT100 commands in shell (e.g. cursor position, clear screen etc.).
|
||||
|
||||
config SHELL_VT100_COLORS
|
||||
bool "Enable colors in shell"
|
||||
depends on SHELL_VT100_COMMANDS
|
||||
default y if !SHELL_MINIMAL
|
||||
help
|
||||
If enabled VT100 colors are used in shell (e.g. print errors in red).
|
||||
|
@ -181,6 +188,7 @@ config SHELL_CMDS
|
|||
config SHELL_CMDS_RESIZE
|
||||
bool "Enable resize command"
|
||||
depends on SHELL_CMDS
|
||||
depends on SHELL_VT100_COMMANDS
|
||||
default y if !SHELL_MINIMAL
|
||||
help
|
||||
By default shell assumes width of a terminal screen set to 80
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue