Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
shell_types.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_SHELL_SHELL_TYPES_H_
14#define ZEPHYR_INCLUDE_SHELL_SHELL_TYPES_H_
15
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
25
43
45
47
48struct shell_vt100_colors {
49 enum shell_vt100_color col;
50 enum shell_vt100_color bgcol;
51};
52
53struct shell_multiline_cons {
54 uint16_t cur_x;
55 uint16_t cur_x_end;
56 uint16_t cur_y;
57 uint16_t cur_y_end;
58 uint16_t terminal_hei;
59 uint16_t terminal_wid;
60 uint8_t name_len;
61};
62
63struct shell_vt100_ctx {
64 struct shell_multiline_cons cons;
65 struct shell_vt100_colors col;
66 uint16_t printed_cmd;
67};
68
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* ZEPHYR_INCLUDE_SHELL_SHELL_TYPES_H_ */
shell_vt100_color
Text colors available for shell output.
Definition shell_types.h:27
@ SHELL_VT100_COLOR_WHITE
White.
Definition shell_types.h:35
@ SHELL_VT100_COLOR_DEFAULT
Terminal default foreground color.
Definition shell_types.h:37
@ SHELL_VT100_COLOR_BLACK
Black.
Definition shell_types.h:28
@ SHELL_VT100_COLOR_CYAN
Cyan.
Definition shell_types.h:34
@ SHELL_VT100_COLOR_RED
Red.
Definition shell_types.h:29
@ SHELL_VT100_COLOR_MAGENTA
Magenta.
Definition shell_types.h:33
@ SHELL_VT100_COLOR_GREEN
Green.
Definition shell_types.h:30
@ SHELL_VT100_COLOR_BLUE
Blue.
Definition shell_types.h:32
@ SHELL_VT100_COLOR_YELLOW
Yellow.
Definition shell_types.h:31
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89