Revision cc33217b core/inc/aos_shell.h
core/inc/aos_shell.h | ||
---|---|---|
36 | 36 |
/******************************************************************************/ |
37 | 37 |
|
38 | 38 |
/** |
39 |
* @brief Size of the escape sequence buffer. |
|
40 |
*/ |
|
41 |
#if !defined(AOS_SHELL_ESCSEQUENCE_LENGTH) || defined(__DOXYGEN__) |
|
42 |
#define AOS_SHELL_ESCSEQUENCE_LENGTH 8 |
|
43 |
#endif |
|
44 |
|
|
45 |
/** |
|
39 | 46 |
* @brief Shell event flag that is emitted when the thread starts. |
40 | 47 |
*/ |
41 | 48 |
#define AOS_SHELL_EVTFLAG_START ((eventflags_t)(1 << 0)) |
... | ... | |
244 | 251 |
AOS_SHELL_ACTION_CURSOR2END, |
245 | 252 |
AOS_SHELL_ACTION_CURSORLEFT, |
246 | 253 |
AOS_SHELL_ACTION_CURSORRIGHT, |
254 |
AOS_SHELL_ACTION_CURSORWORDLEFT, |
|
255 |
AOS_SHELL_ACTION_CURSORWORDRIGHT, |
|
247 | 256 |
AOS_SHELL_ACTION_EXECUTE, |
248 | 257 |
AOS_SHELL_ACTION_ESCSTART, |
258 |
AOS_SHELL_ACTION_PRINTUNKNOWNSEQUENCE, |
|
249 | 259 |
} aos_shellaction_t; |
250 | 260 |
|
251 | 261 |
/** |
... | ... | |
299 | 309 |
aos_shellexecstatus_t execstatus; |
300 | 310 |
|
301 | 311 |
/** |
302 |
* @brief Input buffer.
|
|
312 |
* @brief Structure containing all input data.
|
|
303 | 313 |
*/ |
304 |
char* line; |
|
314 |
struct { |
|
315 |
/** |
|
316 |
* @brief Input buffer. |
|
317 |
*/ |
|
318 |
char* line; |
|
305 | 319 |
|
306 |
/** |
|
307 |
* @brief Size of the input buffer. |
|
308 |
*/ |
|
309 |
size_t linesize; |
|
320 |
/** |
|
321 |
* @brief Size of the input buffer. |
|
322 |
*/ |
|
323 |
size_t width; |
|
324 |
} input; |
|
310 | 325 |
|
311 | 326 |
/** |
312 | 327 |
* @brief Structure containing data for internal input parsing. |
... | ... | |
318 | 333 |
aos_shellaction_t lastaction; |
319 | 334 |
|
320 | 335 |
/** |
321 |
* @brief Number of character in the current escape sequence. |
|
322 |
*/ |
|
323 |
uint8_t escp; |
|
324 |
|
|
325 |
/** |
|
326 | 336 |
* @brief Buffer to store an escape sequence. |
327 | 337 |
*/ |
328 |
char escseq[5];
|
|
338 |
char escseq[AOS_SHELL_ESCSEQUENCE_LENGTH];
|
|
329 | 339 |
|
330 | 340 |
/** |
331 | 341 |
* @brief Current curso position. |
Also available in: Unified diff