Added readline autocomplete to proxmark3 client commands. Still works with shell filenames tab complete
This commit is contained in:
1 parent
287a99d186
commit
a348f48602
5 files changed
+1006
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user