Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
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#ifndef SHELL_TYPES_H__
7#define SHELL_TYPES_H__
8
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
24
26};
27
29 enum shell_vt100_color col; /* Text color. */
30 enum shell_vt100_color bgcol; /* Background color. */
31};
32
34 uint16_t cur_x; /* horizontal cursor position in edited command line.*/
35 uint16_t cur_x_end; /* horizontal cursor position at the end of command.*/
36 uint16_t cur_y; /* vertical cursor position in edited command.*/
37 uint16_t cur_y_end; /* vertical cursor position at the end of command.*/
38 uint16_t terminal_hei; /* terminal screen height.*/
39 uint16_t terminal_wid; /* terminal screen width.*/
41};
42
46 uint16_t printed_cmd; /* printed commands counter */
47};
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* SHELL_TYPES_H__ */
shell_vt100_color
Definition: shell_types.h:14
@ SHELL_VT100_COLOR_WHITE
Definition: shell_types.h:23
@ SHELL_VT100_COLOR_DEFAULT
Definition: shell_types.h:15
@ SHELL_VT100_COLOR_BLACK
Definition: shell_types.h:16
@ SHELL_VT100_COLOR_CYAN
Definition: shell_types.h:22
@ SHELL_VT100_COLOR_RED
Definition: shell_types.h:17
@ SHELL_VT100_COLOR_MAGENTA
Definition: shell_types.h:21
@ VT100_COLOR_END
Definition: shell_types.h:25
@ SHELL_VT100_COLOR_GREEN
Definition: shell_types.h:18
@ SHELL_VT100_COLOR_BLUE
Definition: shell_types.h:20
@ SHELL_VT100_COLOR_YELLOW
Definition: shell_types.h:19
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: shell_types.h:33
uint16_t cur_y_end
Definition: shell_types.h:37
uint16_t cur_y
Definition: shell_types.h:36
uint16_t terminal_wid
Definition: shell_types.h:39
uint16_t cur_x
Definition: shell_types.h:34
uint16_t cur_x_end
Definition: shell_types.h:35
uint8_t name_len
Definition: shell_types.h:40
uint16_t terminal_hei
Definition: shell_types.h:38
Definition: shell_types.h:28
enum shell_vt100_color bgcol
Definition: shell_types.h:30
enum shell_vt100_color col
Definition: shell_types.h:29
Definition: shell_types.h:43
uint16_t printed_cmd
Definition: shell_types.h:46
struct shell_multiline_cons cons
Definition: shell_types.h:44
struct shell_vt100_colors col
Definition: shell_types.h:45