#include "compat.h"
#include "sys.h"
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include "el.h"
#include "enhance.h"
Go to the source code of this file.
Defines | |
#define | OKCMD -1 |
Functions | |
el_private int | read__fixio (int, int) |
el_private int | read_preread (EditLine_t *) |
el_private int | read_getcmd (EditLine_t *, ElAction_t *, char *) |
el_private int | read_char (EditLine_t *, char *) |
el_public void | el_push (EditLine_t *el, const char *str) |
el_public int | el_getc (EditLine_t *el, char *cp) |
int | el_chop_at_newline (EditLine_t *el) |
el_public const char * | el_gets (EditLine_t *el, int *nread) |
el_public const char * | el_gets_newline (EditLine_t *el, int *nread) |
el_public bool | el_eof (EditLine_t *el) |
#define OKCMD -1 |
int el_chop_at_newline | ( | EditLine_t * | el | ) |
Definition at line 380 of file read.cxx.
References ElLine_t::fBuffer, ElLine_t::fLastChar, EditLine_t::fLine, and str.
el_public bool el_eof | ( | EditLine_t * | el | ) |
Definition at line 711 of file read.cxx.
References ElLine_t::fBuffer, and EditLine_t::fLine.
Referenced by rl_eof().
el_public int el_getc | ( | EditLine_t * | el, | |
char * | cp | |||
) |
Definition at line 330 of file read.cxx.
References EditLine_t::fCharEd, CMacro_t::fLevel, ElCharEd_t::fMacro, if(), read_preread(), and term__flush().
Referenced by c_gets(), ce_inc_search(), ed_quoted_insert(), node_trav(), read_getcmd(), and rl_read_key().
el_public const char* el_gets | ( | EditLine_t * | el, | |
int * | nread | |||
) |
Definition at line 399 of file read.cxx.
References b, CC_ARGHACK, CC_CURSOR, CC_EOF, CC_ERROR, CC_FATAL, CC_NEWLINE, CC_NORM, CC_REDISPLAY, CC_REFRESH, CC_REFRESH_BEEP, ch_enlargebufs(), ch_reset(), ed_replay_hist(), EDIT_DISABLED, el_gets(), ElState_t::fArgument, ElLine_t::fBuffer, EditLine_t::fCharEd, ElLine_t::fCursor, ElState_t::fDoingArg, EditLine_t::fErrFile, EditLine_t::fFlags, ElMap_t::fFunc, ElMap_t::fHelp, ElLine_t::fLastChar, ElState_t::fLastCmd, CMacro_t::fLevel, ElLine_t::fLimit, EditLine_t::fLine, ElCharEd_t::fMacro, CMacro_t::fMacro, EditLine_t::fMap, ElMap_t::fNFunc, fprintf(), ElState_t::fReplayHist, EditLine_t::fState, highlightKeywords(), matchParentheses(), NO_TTY, NULL, num, OKCMD, re_clear_display(), re_clear_lines(), re_refresh(), re_refresh_cursor(), read_char(), read_getcmd(), retval, size_t, strcpy(), term__flush(), term_beep(), and void.
Referenced by el_gets(), and readline().
el_public const char* el_gets_newline | ( | EditLine_t * | el, | |
int * | nread | |||
) |
Definition at line 677 of file read.cxx.
References ch_reset(), ed_prev_history(), ElHistory_t::fEventNo, EditLine_t::fFlags, EditLine_t::fHistory, ElLine_t::fLastChar, EditLine_t::fLine, ElState_t::fReplayHist, EditLine_t::fState, HANDLE_SIGNALS, NO_TTY, NULL, re_clear_display(), re_refresh(), sig_set(), and term__flush().
Referenced by readline().
el_public void el_push | ( | EditLine_t * | el, | |
const char * | str | |||
) |
Definition at line 207 of file read.cxx.
References EL_MAXMACRO, EditLine_t::fCharEd, CMacro_t::fLevel, ElCharEd_t::fMacro, CMacro_t::fMacro, NULL, term__flush(), and term_beep().
Referenced by ce_inc_search(), ed_replay_hist(), read_getcmd(), read_preread(), and rl_insert().
el_private int read__fixio | ( | int | , | |
int | ||||
) |
Definition at line 100 of file read.cxx.
References EWOULDBLOCK, F_GETFL, fcntl(), and O_NDELAY.
Referenced by read_char().
el_private int read_char | ( | EditLine_t * | , | |
char * | ||||
) |
Definition at line 290 of file read.cxx.
References EditLine_t::fErrFile, EditLine_t::fIn, EditLine_t::fInFD, fprintf(), read, and read__fixio().
Referenced by el_gets().
el_private int read_getcmd | ( | EditLine_t * | , | |
ElAction_t * | , | |||
char * | ||||
) |
Definition at line 225 of file read.cxx.
References ED_SEQUENCE_LEAD_IN, ED_UNASSIGNED, EL_ABORT, el_getc(), el_push(), ElMap_t::fAlt, ElMap_t::fCurrent, EditLine_t::fErrFile, ElMap_t::fKey, EditLine_t::fMap, ElState_t::fMetaNext, EditLine_t::fState, key_get(), NULL, num, OKCMD, val, XK_CMD, XK_EXE, and XK_STR.
Referenced by el_gets().
el_private int read_preread | ( | EditLine_t * | ) |
Definition at line 168 of file read.cxx.
References buf, ED_IO, EL_BUFSIZ, el_free, el_push(), EditLine_t::fCharEd, EditLine_t::fIn, EditLine_t::fInFD, ElCharEd_t::fMacro, CMacro_t::fNLine, EditLine_t::fTTY, MIN, NULL, read, size_t, ElTTY_t::t_mode, and void.
Referenced by el_getc().