cli: Add a command to show cmdline history
There is a function for this but it is never used. Showing the history is a useful feature, so add a new 'history' command. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -229,4 +229,7 @@ void cli_ch_init(struct cli_ch_state *cch);
|
||||
*/
|
||||
int cli_ch_process(struct cli_ch_state *cch, int ichar);
|
||||
|
||||
/** cread_print_hist_list() - Print the command-line history list */
|
||||
void cread_print_hist_list(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user