summaryrefslogtreecommitdiff
path: root/lib/libedit/terminal.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-01-29 19:32:35 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-01-29 19:32:35 +0000
commite0c1d4afae755ee97ea414016a0eb90c04bae5ac (patch)
tree94ad0ccab65041a45cc6c3446974d3d9439f2f36 /lib/libedit/terminal.h
parentead7befaa50eb741fc37b35b4430859c93cd5c7d (diff)
Second step in synching with NetBSD:
* Rename some types from *key*_t to *keymacro*_t. * Rename struct editline member el_key to el_keymacro. * Rename some functions in keymacro.c from key*() to keymacro*(). This removes the conflict of key_clear(), key_end(), and key_print() with macros in <term.h>. No functional change. This makes keymacro.h identical to the NetBSD version. It reduces the remaining diff from +2640 -1998 to +2446 -1805. OK czarkoff@
Diffstat (limited to 'lib/libedit/terminal.h')
-rw-r--r--lib/libedit/terminal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libedit/terminal.h b/lib/libedit/terminal.h
index dbad1adfeb1..0cee8b99184 100644
--- a/lib/libedit/terminal.h
+++ b/lib/libedit/terminal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: terminal.h,v 1.1 2016/01/29 17:23:21 schwarze Exp $ */
+/* $OpenBSD: terminal.h,v 1.2 2016/01/29 19:32:34 schwarze Exp $ */
/* $NetBSD: term.h,v 1.21 2009/12/30 22:37:40 christos Exp $ */
/*-
@@ -46,7 +46,7 @@
typedef struct { /* Symbolic function key bindings */
const Char *name; /* name of the key */
int key; /* Index in termcap table */
- key_value_t fun; /* Function bound to it */
+ keymacro_value_t fun; /* Function bound to it */
int type; /* Type of function */
} fkey_t;
@@ -96,7 +96,8 @@ protected int term_init(EditLine *);
protected void term_bind_arrow(EditLine *);
protected void term_print_arrow(EditLine *, const Char *);
protected int term_clear_arrow(EditLine *, const Char *);
-protected int term_set_arrow(EditLine *, const Char *, key_value_t *, int);
+protected int term_set_arrow(EditLine *, const Char *, keymacro_value_t *,
+ int);
protected void term_end(EditLine *);
protected void term_get(EditLine *, const char **);
protected int term_set(EditLine *, const char *);