#include "compat.h"
#include <fstream>
#include <string>
#include "sys.h"
#include <sys/types.h>
#include <sys/param.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include "el.h"
Go to the source code of this file.
Functions | |
el_public EditLine_t * | el_init (const char *prog, FILE *fin, FILE *fout, FILE *ferr) |
el_public void | el_end (EditLine_t *el) |
el_public void | el_reset (EditLine_t *el) |
el_public int | el_set (EditLine_t *el, int op,...) |
el_public int | el_get (EditLine_t *el, int op, void *ret) |
el_public const LineInfo_t * | el_line (EditLine_t *el) |
el_public int | el_source (EditLine_t *el, const char *fname) |
el_public void | el_resize (EditLine_t *el) |
el_public void | el_beep (EditLine_t *el) |
el_protected int | el_editmode (EditLine_t *el, int argc, const char **argv) |
Variables | |
static const char | elpath [] = "/.editrc" |
el_public void el_beep | ( | EditLine_t * | el | ) |
Definition at line 487 of file el.cxx.
References term_beep().
Referenced by rl_complete_internal().
el_protected int el_editmode | ( | EditLine_t * | el, | |
int | argc, | |||
const char ** | argv | |||
) |
Definition at line 497 of file el.cxx.
References EDIT_DISABLED, EditLine_t::fErrFile, EditLine_t::fFlags, fprintf(), NULL, and void.
Referenced by el_builtins_init().
el_public void el_end | ( | EditLine_t * | el | ) |
Definition at line 114 of file el.cxx.
References ch_end(), el_free, el_reset(), EditLine_t::fProg, hist_end(), key_end(), map_end(), NULL, prompt_end(), search_end(), sig_end(), term_end(), and tty_end().
Referenced by rl_cleanup_after_signal(), and rl_initialize().
el_public int el_get | ( | EditLine_t * | el, | |
int | op, | |||
void * | ret | |||
) |
Definition at line 278 of file el.cxx.
References EDIT_DISABLED, EL_ABORT, EL_ADDFN, EL_BIND, EL_ECHOTC, EL_EDITMODE, EL_EDITOR, EL_HIST, EL_PROMPT, EL_RPROMPT, EL_SETTC, EL_SETTY, EL_SIGNAL, EL_TELLTC, EL_TERMINAL, EditLine_t::fFlags, func(), HANDLE_SIGNALS, help(), hist_set(), i, map_addfunc(), map_bind(), map_get_editor(), name, NULL, prompt_get(), ptr, str, term_echotc(), term_settc(), term_telltc(), and tty_stty().
el_public EditLine_t* el_init | ( | const char * | prog, | |
FILE * | fin, | |||
FILE * | fout, | |||
FILE * | ferr | |||
) |
Definition at line 67 of file el.cxx.
References ch_init(), el_malloc, EditLine_t::fErrFile, EditLine_t::fFlags, EditLine_t::fIn, EditLine_t::fInFD, EditLine_t::fOutFile, EditLine_t::fProg, hist_init(), key_init(), map_init(), NO_TTY, NULL, prompt_init(), search_init(), sig_init(), term_init(), tty_init(), and void.
Referenced by rl_initialize().
el_public const LineInfo_t* el_line | ( | EditLine_t * | el | ) |
Definition at line 398 of file el.cxx.
References EditLine_t::fLine.
Referenced by rl_complete_internal().
el_public void el_reset | ( | EditLine_t * | el | ) |
Definition at line 140 of file el.cxx.
References ch_reset(), and tty_cookedmode().
Referenced by el_end(), and rl_reset_terminal().
el_public void el_resize | ( | EditLine_t * | el | ) |
Definition at line 444 of file el.cxx.
References ElLine_t::fBuffer, EditLine_t::fCursor, ElCoord_t::fH, ElLine_t::fLastChar, EditLine_t::fLine, ElPrompt_t::fPos, EditLine_t::fPrompt, EditLine_t::fRefresh, ElTerm_t::fSize, EditLine_t::fTerm, ElCoord_t::fV, nlines, NULL, ElRefresh_t::r_oldcv, re_clear_lines(), re_refresh(), SIG_BLOCK, SIG_SETMASK, term__flush(), term_change_size(), term_get_size(), and void.
Referenced by sig_handler(), and termResize().
el_public int el_set | ( | EditLine_t * | el, | |
int | op, | |||
... | ||||
) |
Definition at line 150 of file el.cxx.
References EDIT_DISABLED, EL_ABORT, EL_ADDFN, EL_BIND, EL_ECHOTC, EL_EDITMODE, EL_EDITOR, EL_HIST, EL_PROMPT, EL_RPROMPT, EL_SETTC, EL_SETTY, EL_SIGNAL, EL_TELLTC, EL_TERMINAL, EditLine_t::fErrFile, EditLine_t::fFlags, func(), HANDLE_SIGNALS, help(), hist_set(), i, map_addfunc(), map_bind(), map_set_editor(), name, NULL, prompt_set(), ptr, term_echotc(), term_set(), term_settc(), term_telltc(), and tty_stty().
Referenced by rl_initialize().
el_public int el_source | ( | EditLine_t * | el, | |
const char * | fname | |||
) |
const char elpath[] = "/.editrc" [static] |