26 #if defined (HAVE_CONFIG_H)
32 #if defined (USE_READLINE)
38 #include <readline/history.h>
46 check_history_control (
const char *
line,
int history_control)
51 if (history_control == 0)
62 temp = previous_history ();
79 hc_erasedups (
const char *
line)
85 while ((temp = previous_history ()))
102 if (check_history_control (
line, history_control))
121 return where_history ();
127 return history_length;
133 return max_input_history;
151 return unstifle_history ();
157 return history_is_stifled ();
163 return history_set_pos (
n);
169 return read_history (
f);
181 return read_history_range (
f, b, e);
187 return write_history (
f);
193 return append_history (
n,
f);
199 return history_truncate_file (
f,
n);
205 HIST_ENTRY *discard = remove_history (
n);
208 free (discard->line);
226 if (history_set_pos (
n))
228 h = current_history ();
242 HIST_ENTRY *h = history_get (
n);
255 HIST_ENTRY **hlist = 0;
269 hlist = history_list ();
280 beg = (limit < 0 || end < limit) ? 0 : (end - limit);
282 retval =
malloc ((
size_t) (end - beg + 1) *
sizeof (
char *));
288 for (i = beg; i < end; i++)
297 sprintf (tmp,
"%5d %s", i + history_base,
315 HIST_ENTRY *discard = replace_history_entry (which,
line, 0);
318 free (discard->line);
line(const graphics_handle &mh, const graphics_handle &p)
F77_RET_T const F77_DBLE const F77_DBLE * f
bool strcmp(const T &str_a, const T &str_b)
True if strings are the same.
void octave_stifle_history(int)
int octave_unstifle_history(void)
int octave_where_history(void)
void octave_clear_history(void)
char * octave_history_goto_mark(int n)
int octave_read_history_range(const char *, int, int)
int octave_write_history(const char *)
int octave_append_history(int, const char *)
int octave_read_history(const char *)
char ** octave_history_list(int, int)
int octave_max_input_history(void)
int octave_history_length(void)
void octave_replace_history_entry(int, const char *)
char * octave_history_get(int n)
int octave_history_base(void)
int octave_history_set_pos(int)
int octave_add_history(const char *, int)
int octave_history_truncate_file(const char *, int)
void octave_using_history(void)
int octave_history_is_stifled(void)
void octave_remove_history(int)
T::size_type strlen(const typename T::value_type *str)
octave_value::octave_value(const Array< char > &chm, char type) return retval