Variables and functions supporting Term::ReadLine::Perl5's command history.
$line into history list if
bigger than the minimal length
not same as last entry
Place @_ at the end of the history list unless the history is stifled, or there are already too many items.
Clear or reset readline history.
Make the history entry at
$data. This returns the old entry. In the case of an invalid
$which, $<undef> is returned.
Unstifle or remove limit the history list.
Theprevious maximum number of history entries is returned. The value is positive if the history was stifled and negative if it wasn't.
Returns true if saved history has a limited (stifled) or false if there is no limit (unstifled).
Remove history element
$which from the history. The removed element is returned.
ReadHistory([FILENAME [,FROM [,TO]]])
int read_history(str filename = '~/.history', int from = 0, int to = -1) int read_history_range(str filename = '~/.history', int from = 0, int to = -1)
adds the contents of
FILENAME to the history list, a line at a time. If
FILENAME is false, then read from ~/.history. Start reading at line
FROM and end at
FROM is omitted or zero, start at the beginning. If
TO is omitted or less than
FROM, then read until the end of the file. Returns true if successful, or false if not.
read_history() is an aliase of
int write_history(str filename = '~/.history')
writes the current history to
FILENAME if necessary. If
FILENAME is false, then write the history list to ~/.history. Returns true if successful, or false if not.
SetHistory(LINE1 [, LINE2, ...])
sets the history of input, from where it can be used.
returns the history of input as a list.