4 /* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this software; see the file COPYING. If not, write to
18 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 * Boston, MA 02111-1307 USA
23 #include "libguile/__scm.h"
25 extern scm_option scm_readline_opts
[];
27 #define SCM_HISTORY_FILE_P scm_readline_opts[0].val
28 #define SCM_HISTORY_LENGTH scm_readline_opts[1].val
29 #define SCM_READLINE_BOUNCE_PARENS scm_readline_opts[2].val
30 #define SCM_N_READLINE_OPTIONS 3
32 extern SCM
scm_readline_options (SCM setting
);
33 extern void scm_readline_init_ports (SCM inp
, SCM outp
);
34 extern SCM
scm_readline (SCM txt
, SCM inp
, SCM outp
, SCM read_hook
);
35 extern SCM
scm_add_history (SCM txt
);
36 extern SCM
scm_read_history (SCM file
);
37 extern SCM
scm_write_history (SCM file
);
38 extern SCM
scm_filename_completion_function (SCM text
, SCM continuep
);
39 extern void scm_init_readline (void);
41 #ifndef HAVE_RL_CLEANUP_AFTER_SIGNAL
42 void rl_cleanup_after_signal ();
43 void rl_free_line_state ();