#include <stdio.h>#include <stdlib.h>#include <string.h>#include "el_unix.h"#include "EST_walloc.h"

Go to the source code of this file.
Macros | |
| #define | ANSI_ARROWS |
| #define | HAVE_TCGETATTR |
| #define | HAVE_STDLIB |
| #define | HIDE |
| #define | USE_DIRENT |
| #define | SYS_UNIX |
| #define | USE_TERMCAP |
| #define | ESIZE_T unsigned int |
| #define | STATIC static |
| #define | CONST |
| #define | MEM_INC 64 |
| #define | SCREEN_INC 256 |
| #define | COPYFROMTO(new, p, len) (void)memcpy((char *)(new), (char *)(p), (int)(len)) |
| #define | DISPOSE(p) wfree(p) |
| #define | NEW(T, c) walloc(T,c) |
| #define | RENEW(p, T, c) (p = wrealloc(p,T,c)) |
| #define | STRDUP(X) wstrdup(X) |
Typedefs | |
| typedef STATUS(* | Keymap_Function) () |
| typedef unsigned char | ECHAR |
| typedef char ** | EL_USER_COMPLETION_FUNCTION_TYPE(char *text, int start, int end) |
Enumerations | |
| enum | STATUS { CSdone, CSeof, CSmove, CSdispatch, CSstay } |
Functions | |
| char * | rl_complete (char *pathname, int *unique) |
| int | rl_list_possib (char *pathname, char ***avp) |
| void | rl_ttyset (int Reset) |
| void | rl_add_slash (char *path, char *p) |
| int | el_is_directory (char *path) |
| void | do_user_intr () |
| char * | readline (CONST char *prompt) |
| void | add_history (char *p) |
| void | read_history (const char *history_file) |
| void | write_history (const char *history_file) |
| char * | el_current_sym () |
| void | el_redisplay () |
| void | el_bind_key_in_metamap (char c, Keymap_Function func) |
Variables | |
| int | rl_eof |
| int | rl_erase |
| int | rl_intr |
| int | rl_kill |
| int | rl_quit |
| int | el_user_intr |
| int | el_no_echo |
| char * | editline_history_file |
| EL_USER_COMPLETION_FUNCTION_TYPE * | el_user_completion_function |
| #define ANSI_ARROWS |
Definition at line 48 of file editline.h.
| #define HAVE_TCGETATTR |
Definition at line 49 of file editline.h.
| #define HAVE_STDLIB |
Definition at line 50 of file editline.h.
| #define HIDE |
Definition at line 51 of file editline.h.
| #define USE_DIRENT |
Definition at line 52 of file editline.h.
| #define SYS_UNIX |
Definition at line 53 of file editline.h.
| #define USE_TERMCAP |
Definition at line 55 of file editline.h.
| #define ESIZE_T unsigned int |
Definition at line 80 of file editline.h.
| #define STATIC static |
Definition at line 86 of file editline.h.
| #define CONST |
Definition at line 95 of file editline.h.
| #define MEM_INC 64 |
Definition at line 100 of file editline.h.
| #define SCREEN_INC 256 |
Definition at line 101 of file editline.h.
| #define COPYFROMTO | ( | new, | |
| p, | |||
| len | |||
| ) | (void)memcpy((char *)(new), (char *)(p), (int)(len)) |
Definition at line 111 of file editline.h.
| #define DISPOSE | ( | p | ) | wfree(p) |
Definition at line 115 of file editline.h.
| #define NEW | ( | T, | |
| c | |||
| ) | walloc(T,c) |
Definition at line 116 of file editline.h.
| #define RENEW | ( | p, | |
| T, | |||
| c | |||
| ) | (p = wrealloc(p,T,c)) |
Definition at line 117 of file editline.h.
Definition at line 118 of file editline.h.
| typedef STATUS(* Keymap_Function) () |
Definition at line 64 of file editline.h.
| typedef unsigned char ECHAR |
Definition at line 83 of file editline.h.
Definition at line 159 of file editline.h.
| enum STATUS |
| Enumerator | |
|---|---|
| CSdone | |
| CSeof | |
| CSmove | |
| CSdispatch | |
| CSstay | |
Definition at line 60 of file editline.h.
| char* rl_complete | ( | char * | pathname, |
| int * | unique | ||
| ) |
Definition at line 171 of file el_complete.c.
| int rl_list_possib | ( | char * | pathname, |
| char *** | avp | ||
| ) |
Definition at line 240 of file el_complete.c.
| void rl_ttyset | ( | int | Reset | ) |
Definition at line 63 of file el_sys_unix.c.
| void rl_add_slash | ( | char * | path, |
| char * | p | ||
| ) |
Definition at line 150 of file el_sys_unix.c.
| int el_is_directory | ( | char * | path | ) |
Definition at line 158 of file el_sys_unix.c.
| void do_user_intr | ( | ) |
Definition at line 168 of file el_sys_unix.c.
| char* readline | ( | CONST char * | prompt | ) |
Definition at line 1354 of file editline.c.
| void add_history | ( | char * | p | ) |
Definition at line 1395 of file editline.c.
| void read_history | ( | const char * | history_file | ) |
Definition at line 1313 of file editline.c.
| void write_history | ( | const char * | history_file | ) |
Definition at line 1296 of file editline.c.
| char* el_current_sym | ( | ) |
Definition at line 1464 of file editline.c.
| void el_redisplay | ( | ) |
Definition at line 1459 of file editline.c.
| void el_bind_key_in_metamap | ( | char | c, |
| Keymap_Function | func | ||
| ) |
Definition at line 1967 of file editline.c.
| int rl_eof |
Definition at line 108 of file editline.c.
| int rl_erase |
Definition at line 109 of file editline.c.
| int rl_intr |
Definition at line 110 of file editline.c.
| int rl_kill |
Definition at line 111 of file editline.c.
| int rl_quit |
Definition at line 121 of file editline.c.
| int el_user_intr |
Definition at line 53 of file el_sys_unix.c.
| int el_no_echo |
Definition at line 146 of file editline.c.
| char* editline_history_file |
Definition at line 76 of file editline.c.
| EL_USER_COMPLETION_FUNCTION_TYPE* el_user_completion_function |
Definition at line 79 of file editline.c.