#include <stdio.h>#include <sys/types.h>#include "tty.h"#include "prompt.h"#include "key.h"#include "el_term.h"#include "refresh.h"#include "chared.h"#include "common.h"#include "search.h"#include "hist.h"#include "map.h"#include "parse.h"#include "sig.h"#include "help.h"#include "read.h"Include dependency graph for el.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | coord_t |
| struct | el_line_t |
| struct | el_state_t |
| struct | editline |
Defines | |
| #define | KSHVI |
| #define | VIDEFAULT |
| #define | ANCHOR |
| #define | EL_BUFSIZ 1024 |
| #define | HANDLE_SIGNALS 0x01 |
| #define | NO_TTY 0x02 |
| #define | EDIT_DISABLED 0x04 |
| #define | UNBUFFERED 0x08 |
| #define | el_strdup(a) strdup(a) |
| #define | el_malloc(a) malloc(a) |
| #define | el_realloc(a, b) realloc(a, b) |
| #define | el_free(a) free(a) |
| #define | EL_ABORT(a) abort() |
Typedefs | |
| typedef int | bool_t |
| typedef unsigned char | el_action_t |
Functions | |
| protected int | el_editmode (EditLine *, int, const char **) |
| #define ANCHOR |
| #define EDIT_DISABLED 0x04 |
Definition at line 56 of file el.h.
Referenced by el_editmode(), el_get(), el_gets(), el_set(), read_prepare(), term_set(), tty_cookedmode(), tty_rawmode(), and tty_setup().
| #define EL_ABORT | ( | a | ) | abort() |
Definition at line 147 of file el.h.
Referenced by el_get(), el_set(), key_kprint(), map_bind(), map_init(), map_print_some_keys(), node__put(), node__try(), and read_getcmd().
| #define EL_BUFSIZ 1024 |
Definition at line 52 of file el.h.
Referenced by c_gets(), c_setpat(), ce_inc_search(), ch_init(), cv_search(), ed_command(), ed_prev_history(), ed_search_prev_history(), hist_init(), key_kprint(), map_bind(), map_print_key(), map_print_some_keys(), read_preread(), search_init(), term_telltc(), and vi_to_history_line().
| #define el_free | ( | a | ) | free(a) |
Definition at line 94 of file el.h.
Referenced by ch_end(), el_end(), el_getc(), el_init(), el_parse(), hist_end(), key_end(), map_end(), node__put(), node__try(), search_end(), sig_end(), term_end(), and term_free_display().
| #define el_malloc | ( | a | ) | malloc(a) |
Definition at line 92 of file el.h.
Referenced by ch_init(), el_init(), el_parse(), hist_init(), key_init(), map_init(), node__get(), search_init(), sig_init(), term_alloc_display(), and term_init().
| #define el_realloc | ( | a, | |||
| b | ) | realloc(a, b) |
| #define el_strdup | ( | a | ) | strdup(a) |
| #define HANDLE_SIGNALS 0x01 |
Definition at line 54 of file el.h.
Referenced by el_get(), el_set(), read_finish(), and read_prepare().
| #define KSHVI |
| #define NO_TTY 0x02 |
Definition at line 55 of file el.h.
Referenced by el_gets(), el_init(), read_prepare(), and readline().
| #define UNBUFFERED 0x08 |
Definition at line 57 of file el.h.
Referenced by el_get(), el_gets(), el_set(), read_finish(), and read_prepare().
| typedef unsigned char el_action_t |
| protected int el_editmode | ( | EditLine * | , | |
| int | , | |||
| const char ** | ||||
| ) |
Definition at line 507 of file el.c.
References EDIT_DISABLED, el, editline::el_errfile, editline::el_flags, NULL, strcmp(), tty_cookedmode(), and tty_rawmode().
00508 { 00509 const char *how; 00510 00511 if (argv == NULL || argc != 2 || argv[1] == NULL) 00512 return (-1); 00513 00514 how = argv[1]; 00515 if (strcmp(how, "on") == 0) { 00516 el->el_flags &= ~EDIT_DISABLED; 00517 tty_rawmode(el); 00518 } else if (strcmp(how, "off") == 0) { 00519 tty_cookedmode(el); 00520 el->el_flags |= EDIT_DISABLED; 00521 } 00522 else { 00523 (void) fprintf(el->el_errfile, "edit: Bad value `%s'.\n", how); 00524 return (-1); 00525 } 00526 return (0); 00527 }
Here is the call graph for this function:

1.4.7

