reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/LineEditor/LineEditor.cpp
  205   Data->LE = this;
  206   Data->Out = Out;
  208   Data->Hist = ::history_init();
  209   assert(Data->Hist);
  211   Data->EL = ::el_init(ProgName.str().c_str(), In, Out, Err);
  212   assert(Data->EL);
  214   ::el_set(Data->EL, EL_PROMPT, ElGetPromptFn);
  215   ::el_set(Data->EL, EL_EDITOR, "emacs");
  216   ::el_set(Data->EL, EL_HIST, history, Data->Hist);
  216   ::el_set(Data->EL, EL_HIST, history, Data->Hist);
  217   ::el_set(Data->EL, EL_ADDFN, "tab_complete", "Tab completion function",
  219   ::el_set(Data->EL, EL_BIND, "\t", "tab_complete", NULL);
  220   ::el_set(Data->EL, EL_BIND, "^r", "em-inc-search-prev",
  222   ::el_set(Data->EL, EL_BIND, "^w", "ed-delete-prev-word",
  224   ::el_set(Data->EL, EL_BIND, "\033[3~", "ed-delete-next-char",
  226   ::el_set(Data->EL, EL_CLIENTDATA, Data.get());
  226   ::el_set(Data->EL, EL_CLIENTDATA, Data.get());
  229   ::history(Data->Hist, &HE, H_SETSIZE, 800);
  230   ::history(Data->Hist, &HE, H_SETUNIQUE, 1);
  237   ::history_end(Data->Hist);
  238   ::el_end(Data->EL);
  239   ::fwrite("\n", 1, 1, Data->Out);
  245     ::history(Data->Hist, &HE, H_SAVE, HistoryPath.c_str());
  252     ::history(Data->Hist, &HE, H_LOAD, HistoryPath.c_str());
  259   const char *Line = ::el_gets(Data->EL, &LineLen);
  272     ::history(Data->Hist, &HE, H_ENTER, Line);