el.h File Reference

#include <stdio.h>
#include <sys/types.h>
#include "tty.h"
#include "prompt.h"
#include "key.h"
#include "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.

Data Structures

struct  coord_t
struct  editline
struct  el_line_t
struct  el_state_t

Defines

#define ANCHOR
#define EDIT_DISABLED   1<<2
#define EL_ABORT(a)   abort()
#define EL_BUFSIZ   1024
#define el_free(a)   free(a)
#define el_malloc(a)   malloc(a)
#define el_realloc(a, b)   realloc(a, b)
#define HANDLE_SIGNALS   1<<0
#define KSHVI
#define NO_TTY   1<<1
#define VIDEFAULT

Typedefs

typedef int bool_t
typedef unsigned char el_action_t

Functions

protected int el_editmode (EditLine *, int, const char **)


Define Documentation

#define ANCHOR

Definition at line 51 of file el.h.

#define EDIT_DISABLED   1<<2

Definition at line 60 of file el.h.

Referenced by el_editmode(), el_get(), el_gets(), el_set(), term_set(), tty_cookedmode(), tty_rawmode(), and tty_setup().

#define EL_ABORT ( a   )     abort()

#define EL_BUFSIZ   1024

#define el_free ( a   )     free(a)

#define el_malloc ( a   )     malloc(a)

#define el_realloc ( a,
b   )     realloc(a, b)

Definition at line 93 of file el.h.

Referenced by ch_enlargebufs(), and map_addfunc().

#define HANDLE_SIGNALS   1<<0

Definition at line 58 of file el.h.

Referenced by el_get(), el_gets(), and el_set().

#define KSHVI

Definition at line 49 of file el.h.

#define NO_TTY   1<<1

Definition at line 59 of file el.h.

Referenced by el_gets(), and el_init().

#define VIDEFAULT

Definition at line 50 of file el.h.


Typedef Documentation

typedef int bool_t

Definition at line 62 of file el.h.

typedef unsigned char el_action_t

Definition at line 64 of file el.h.


Function Documentation

protected int el_editmode ( EditLine ,
int  ,
const char **   
)

Definition at line 492 of file el.c.

References EDIT_DISABLED, editline::el_errfile, editline::el_flags, and NULL.

00493 {
00494    const char *how;
00495 
00496    if (argv == NULL || argc != 2 || argv[1] == NULL)
00497       return (-1);
00498 
00499    how = argv[1];
00500    if (strcmp(how, "on") == 0)
00501       el->el_flags &= ~EDIT_DISABLED;
00502    else if (strcmp(how, "off") == 0)
00503       el->el_flags |= EDIT_DISABLED;
00504    else {
00505       (void) fprintf(el->el_errfile, "edit: Bad value `%s'.\n", how);
00506       return (-1);
00507    }
00508    return (0);
00509 }


Generated on Thu Apr 16 06:30:49 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6