summaryrefslogtreecommitdiffstats
path: root/lib/libedit/refresh.h
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2003-10-31 08:42:23 +0000
committerotto <otto@openbsd.org>2003-10-31 08:42:23 +0000
commitd484b7d03ace7dfad66bf1845501ed21cdb16b83 (patch)
tree7217919f9a70564b29131d02c66a64d9abcfe577 /lib/libedit/refresh.h
parentregen. (diff)
downloadwireguard-openbsd-d484b7d03ace7dfad66bf1845501ed21cdb16b83.tar.xz
wireguard-openbsd-d484b7d03ace7dfad66bf1845501ed21cdb16b83.zip
Update to NetBSD libedit (from Oct 1, 2003), adding some string
cleaning and history bug fixes. The code includes GNU libreadline functionality, but the corresponding header files are not installed, since some libreadline functions are missing. There are some minor API changes, notably: old: EditLine *el_init(const char *, FILE *, FILE *); new: EditLine *el_init(const char *, FILE *, FILE *, FILE *); old: HistEvent *history(History *h, int op, ...); new: int history(History *h, HistEvent *ev, int op, ...); plus some changes in operation names. See editline(3) for details. Tested by djm@, mouring@, jmc@. ok deraadt@
Diffstat (limited to 'lib/libedit/refresh.h')
-rw-r--r--lib/libedit/refresh.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/libedit/refresh.h b/lib/libedit/refresh.h
index bfa7b4627be..66f4ffc6a11 100644
--- a/lib/libedit/refresh.h
+++ b/lib/libedit/refresh.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: refresh.h,v 1.5 2003/06/02 20:18:40 millert Exp $ */
-/* $NetBSD: refresh.h,v 1.2 1997/01/11 06:48:08 lukem Exp $ */
+/* $OpenBSD: refresh.h,v 1.6 2003/10/31 08:42:24 otto Exp $ */
+/* $NetBSD: refresh.h,v 1.5 2003/08/07 16:44:33 agc Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -39,16 +39,17 @@
* el.refresh.h: Screen refresh functions
*/
#ifndef _h_el_refresh
-#define _h_el_refresh
+#define _h_el_refresh
#include "histedit.h"
typedef struct {
- coord_t r_cursor; /* Refresh cursor position */
- int r_oldcv, r_newcv; /* Vertical locations */
+ coord_t r_cursor; /* Refresh cursor position */
+ int r_oldcv; /* Vertical locations */
+ int r_newcv;
} el_refresh_t;
-protected void re_putc(EditLine *, int);
+protected void re_putc(EditLine *, int, int);
protected void re_clear_lines(EditLine *);
protected void re_clear_display(EditLine *);
protected void re_refresh(EditLine *);