1Devel::REPL::Plugin::ReUasdeLrinCeoHnitsrtiobruyt(e3d)PDeervlelD:o:cRuEmPeLn:t:aPtliuognin::ReadLineHistory(3)
2
3
4
6 Devel::REPL::Plugin::ReadLineHistory - Integrate history with the
7 facilities provided by Term::ReadLine
8
10 This plugin enables loading and saving command line history from a file
11 as well has history expansion of previous commands using the !-syntax a
12 la bash.
13
14 By default, history expansion is enabled with this plugin when using
15 Term::ReadLine::Gnu. That means that "loose" '!' characters will be
16 treated as history events which may not be what you wish.
17
18 To avoid this, you need to quote the '!' with '\':
19
20 my $var = "foo\!";
21
22 or place the arguments in single quotes---but enable the
23 "Term::ReadLine" attribute "history_quotes_inhibit_expansion":
24
25 $_REPL->term->Attribs->{history_quotes_inhibit_expansion} = 1;
26 my $var = 'foo!';
27
28 and to disable history expansion from GNU readline/history do
29
30 $_REPL->term->Attribs->{do_expand} = 0;
31
33 Note that Term::ReadLine::Perl does not support a history expansion
34 method. In that case, you may wish to use the Devel::REPL History
35 plugin which provides similar functions. Work is underway to make use
36 of either History or ReadLineHistory consistent for expansion with
37 either the Term::ReadLine::Gnu support or Term::ReadLine::Perl.
38
39
40
41perl v5.12.1 2010-0D6e-v1e5l::REPL::Plugin::ReadLineHistory(3)