shell: rework vt100 commands storage

VT100 commands are now stored as strings rather than character arrays.
This change will make it easier to create a unified macro for sending
all VT100 commands.

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
Jakub Rzeszutko 2021-09-20 14:18:08 +02:00 committed by Christopher Friedt
commit 0a50ebed01
4 changed files with 264 additions and 592 deletions

View file

@ -12,7 +12,6 @@ extern "C" {
#endif
enum shell_vt100_color {
SHELL_VT100_COLOR_DEFAULT,
SHELL_VT100_COLOR_BLACK,
SHELL_VT100_COLOR_RED,
SHELL_VT100_COLOR_GREEN,
@ -22,6 +21,8 @@ enum shell_vt100_color {
SHELL_VT100_COLOR_CYAN,
SHELL_VT100_COLOR_WHITE,
SHELL_VT100_COLOR_DEFAULT,
VT100_COLOR_END
};