diff options
author | 2016-01-30 00:06:39 +0000 | |
---|---|---|
committer | 2016-01-30 00:06:39 +0000 | |
commit | fd40972a32cae034e619460a2b6f83c3492db0ca (patch) | |
tree | 72798d3d835644ba0a1c63eade7f249cf5f8e482 /lib/libedit/read.c | |
parent | whitespace fixes; ok ajacoutot (diff) | |
download | wireguard-openbsd-fd40972a32cae034e619460a2b6f83c3492db0ca.tar.xz wireguard-openbsd-fd40972a32cae034e619460a2b6f83c3492db0ca.zip |
Third step in synching with NetBSD:
* rename fkey_t to funckey_t and el_term_t to el_terminal_t
* rename struct editline member el_term to el_terminal
* rename many functions in terminal.c from term_*() to terminal_*(),
for consistency with the file name and to not look related to <term.h>
No functional change.
This makes refresh.c and sig.c almost identical to the NetBSD versions.
It reduces the remaining diff from +2446 -1805 to +2053 -1420.
OK czarkoff@
Diffstat (limited to 'lib/libedit/read.c')
-rw-r--r-- | lib/libedit/read.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c index dccec9be36f..ea8b09fcc10 100644 --- a/lib/libedit/read.c +++ b/lib/libedit/read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.16 2016/01/29 19:32:33 schwarze Exp $ */ +/* $OpenBSD: read.c,v 1.17 2016/01/30 00:06:39 schwarze Exp $ */ /* $NetBSD: read.c,v 1.57 2010/07/21 18:18:52 christos Exp $ */ /*- @@ -221,8 +221,8 @@ FUN(el,push)(EditLine *el, const Char *str) return; ma->level--; } - term_beep(el); - term__flush(el); + terminal_beep(el); + terminal__flush(el); } @@ -382,7 +382,7 @@ FUN(el,getc)(EditLine *el, Char *cp) int num_read; c_macro_t *ma = &el->el_chared.c_macro; - term__flush(el); + terminal__flush(el); for (;;) { if (ma->level < 0) { if (!read_preread(el)) @@ -445,7 +445,7 @@ read_prepare(EditLine *el) re_refresh(el); /* print the prompt */ if (el->el_flags & UNBUFFERED) - term__flush(el); + terminal__flush(el); } protected void @@ -528,7 +528,7 @@ FUN(el,gets)(EditLine *el, int *nread) else cp = el->el_line.lastchar; - term__flush(el); + terminal__flush(el); while ((num = (*el->el_read.read_char)(el, cp)) == 1) { /* make sure there is space next character */ @@ -635,7 +635,7 @@ FUN(el,gets)(EditLine *el, int *nread) case CC_REFRESH_BEEP: re_refresh(el); - term_beep(el); + terminal_beep(el); break; case CC_NORM: /* normal char */ @@ -676,8 +676,8 @@ FUN(el,gets)(EditLine *el, int *nread) (void) fprintf(el->el_errfile, "*** editor ERROR ***\r\n\n"); #endif /* DEBUG_READ */ - term_beep(el); - term__flush(el); + terminal_beep(el); + terminal__flush(el); break; } el->el_state.argument = 1; @@ -687,7 +687,7 @@ FUN(el,gets)(EditLine *el, int *nread) break; } - term__flush(el); /* flush any buffered output */ + terminal__flush(el); /* flush any buffered output */ /* make sure the tty is set up correctly */ if ((el->el_flags & UNBUFFERED) == 0) { read_finish(el); |