Added readline autocomplete to proxmark3 client commands. Still works with shell filenames tab complete

This commit is contained in:
iceman1001 committed 2021-12-12 20:12:56 +01:00
1 parent 287a99d186
commit a348f48602
5 files changed
+1006

No files matched your search

+4
View File
@@ -18,6 +18,7 @@
#ifdef HAVE_READLINE
#include <readline/readline.h>
#include <readline/history.h>
#include "rl_vocabulory.h"
#include <signal.h>
#endif
#include <ctype.h>
@@ -775,6 +776,9 @@ int main(int argc, char *argv[]) {
/* initialize history */
using_history();
rl_readline_name = "PM3";
rl_attempted_completion_function = rl_command_completion;
#ifdef RL_STATE_READCMD
rl_extend_line_buffer(1024);
#endif // RL_STATE_READCMD