Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit term -> terminal
details: https://anonhg.NetBSD.org/src/rev/584470774fe7
branches: trunk
changeset: 767699:584470774fe7
user: christos <christos%NetBSD.org@localhost>
date: Thu Jul 28 00:44:35 2011 +0000
description:
term -> terminal
fix wide function confusion
diffstat:
lib/libedit/read.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (94 lines):
diff -r f74ab15de1f0 -r 584470774fe7 lib/libedit/read.c
--- a/lib/libedit/read.c Thu Jul 28 00:43:53 2011 +0000
+++ b/lib/libedit/read.c Thu Jul 28 00:44:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.61 2011/07/09 23:54:39 christos Exp $ */
+/* $NetBSD: read.c,v 1.62 2011/07/28 00:44:35 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: read.c,v 1.61 2011/07/09 23:54:39 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.62 2011/07/28 00:44:35 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -227,8 +227,8 @@
return;
ma->level--;
}
- term_beep(el);
- term__flush(el);
+ terminal_beep(el);
+ terminal__flush(el);
}
@@ -323,7 +323,7 @@
while ((num_read = read(el->el_infd, cbuf + cbp, 1)) == -1) {
switch (el->el_signal->sig_no) {
case SIGCONT:
- el_set(el, EL_REFRESH);
+ FUN(el,set)(el, EL_REFRESH);
/*FALLTHROUGH*/
case SIGWINCH:
sig_set(el);
@@ -392,7 +392,7 @@
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))
@@ -455,7 +455,7 @@
re_refresh(el); /* print the prompt */
if (el->el_flags & UNBUFFERED)
- term__flush(el);
+ terminal__flush(el);
}
protected void
@@ -538,7 +538,7 @@
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 */
@@ -645,7 +645,7 @@
case CC_REFRESH_BEEP:
re_refresh(el);
- term_beep(el);
+ terminal_beep(el);
break;
case CC_NORM: /* normal char */
@@ -686,8 +686,8 @@
(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;
@@ -697,7 +697,7 @@
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);
Home |
Main Index |
Thread Index |
Old Index