X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=shell%2Fcmdedit.h;h=991dafcd1ded39ed2ef2cbb3570902ac3e7c83aa;hb=b89fcd44308b7551ca239c31fe26df725377f75f;hp=e776543d6d1dd331fd9006339d6515d7881d6c66;hpb=13456d1fcd0122d8464c3c3e1c356d86a56e6c08;p=oweals%2Fbusybox.git diff --git a/shell/cmdedit.h b/shell/cmdedit.h index e776543d6..991dafcd1 100644 --- a/shell/cmdedit.h +++ b/shell/cmdedit.h @@ -1,17 +1,11 @@ -/* - * Termios command line History and Editting for NetBSD sh (ash) - * Copyright (c) 1999 - * Main code: Adam Rogoyski - * Etc: Dave Cinege - * Adjusted for busybox: Erik Andersen - * - * You may use this code as you wish, so long as the original author(s) - * are attributed in any redistributions of the source code. - * This code is 'as is' with no warranty. - * This code may safely be consumed by a BSD or GPL license. - * - */ +#ifndef CMDEDIT_H +#define CMDEDIT_H -extern int cmdedit_read_input(int inputFd, int outputFd, char command[BUFSIZ]); -extern void cmdedit_init(void); +int cmdedit_read_input(char* promptStr, char* command); +#ifdef CONFIG_FEATURE_COMMAND_SAVEHISTORY +void load_history ( const char *fromfile ); +void save_history ( const char *tofile ); +#endif + +#endif /* CMDEDIT_H */