Browse Source

HAVELIBREADLINE

master
gtheler 5 years ago
parent
commit
080b5709fe
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/tty.cpp

+ 2
- 2
src/tty.cpp View File

int Tty::len = 0; int Tty::len = 0;


char *Tty::rl_command_generator(const char *text, int state) { char *Tty::rl_command_generator(const char *text, int state) {
#ifdef HAVE_READLINE
#ifdef HAVE_LIBREADLINE
if (!state) { if (!state) {
list_index = 0; list_index = 0;


char **Tty::rl_completion(const char *text, int start, int end) { char **Tty::rl_completion(const char *text, int start, int end) {
char **matches = NULL; char **matches = NULL;
#ifdef HAVE_READLINE
#ifdef HAVE_LIBREADLINE
matches = rl_completion_matches(text, rl_command_generator); matches = rl_completion_matches(text, rl_command_generator);
#endif #endif
return matches; return matches;

Loading…
Cancel
Save