diff options
author | obrien <obrien@FreeBSD.org> | 2001-10-01 08:43:58 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-10-01 08:43:58 +0000 |
commit | d9494059c0831aec86c9b2ccc7c0dbb40f70615f (patch) | |
tree | 9059e56ae23cbabd5e6903995dcb45dc73d47b83 /usr.sbin/lpr/lpc | |
parent | 90300f853673b3879ab4d6a60683ff69b564c58b (diff) | |
download | FreeBSD-src-d9494059c0831aec86c9b2ccc7c0dbb40f70615f.zip FreeBSD-src-d9494059c0831aec86c9b2ccc7c0dbb40f70615f.tar.gz |
*** empty log message ***
Diffstat (limited to 'usr.sbin/lpr/lpc')
-rw-r--r-- | usr.sbin/lpr/lpc/lpc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c index 5c890f4..457ad70 100644 --- a/usr.sbin/lpr/lpc/lpc.c +++ b/usr.sbin/lpr/lpc/lpc.c @@ -150,6 +150,7 @@ cmdscanner(void) register struct cmd *c; static EditLine *el; static History *hist; + HistEvent he; size_t len; int num; const char *bp; @@ -161,9 +162,9 @@ cmdscanner(void) for (;;) { if (fromatty) { if (!el) { - el = el_init("lpc", stdin, stdout); + el = el_init("lpc", stdin, stdout, stderr); hist = history_init(); - history(hist, H_EVENT, 100); + history(hist, &he, H_EVENT, 100); el_set(el, EL_HIST, history, hist); el_set(el, EL_EDITOR, "emacs"); el_set(el, EL_PROMPT, lpc_prompt); @@ -185,7 +186,7 @@ cmdscanner(void) len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num; memcpy(cmdline, bp, len); cmdline[len] = 0; - history(hist, H_ENTER, bp); + history(hist, &he, H_ENTER, bp); } else { if (fgets(cmdline, MAX_CMDLINE, stdin) == 0) |