From 0aabb7e5adc270fbfd31b331a8e3ee3397a24a6e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 16 Apr 2016 07:27:28 +0000 Subject: More shell enhancements. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9285 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/shell/shell.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'os/various/shell/shell.h') diff --git a/os/various/shell/shell.h b/os/various/shell/shell.h index 4620ded8b..b155ec99b 100644 --- a/os/various/shell/shell.h +++ b/os/various/shell/shell.h @@ -148,8 +148,10 @@ typedef struct { const ShellCommand *sc_commands; /**< @brief Shell extra commands table. */ #if (SHELL_USE_HISTORY == TRUE) || defined(__DOXYGEN__) - ShellHistory *sc_history; /**< @brief Shell command history + char *sc_histbuf; /**< @brief Shell command history buffer. */ + const int sc_histsize; /**< @brief Shell history buffer + size. */ #endif #if (SHELL_USE_COMPLETION == TRUE) || defined(__DOXYGEN__) char **sc_completion; /**< @brief Shell command completion @@ -207,7 +209,7 @@ extern "C" { void shellInit(void); THD_FUNCTION(shellThread, p); void shellExit(msg_t msg); - bool shellGetLine(ShellConfig *scfg, char *line, unsigned size); + bool shellGetLine(ShellConfig *scfg, char *line, unsigned size, ShellHistory *shp); #ifdef __cplusplus } #endif -- cgit v1.2.3