From 314d37171eeeaf59a5b31a334f60c81fe2e6745c Mon Sep 17 00:00:00 2001 From: delphij Date: Thu, 4 Feb 2010 18:43:05 +0000 Subject: Use libedit when interacting with tty, which provided history functionality, etc. as did by GNU bc. This also fixes an issue where BSDL bc can not handle very long line. Reported by: imp Reviewed by: imp --- usr.bin/bc/extern.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.bin/bc/extern.h') diff --git a/usr.bin/bc/extern.h b/usr.bin/bc/extern.h index a99c46c..d1e9fe8 100644 --- a/usr.bin/bc/extern.h +++ b/usr.bin/bc/extern.h @@ -35,4 +35,8 @@ extern int sargc; extern const char **sargv; extern const char *filename; extern char *cmdexpr; -bool interactive; +extern bool interactive; +extern EditLine *el; +extern History *hist; +extern HistEvent he; + -- cgit v1.1