Term-ReadLine-Perl
view release on metacpan or search on metacpan
0.9908: support $ENV{INPUTRC}.
Advice users to look into *this* file for features...
Joe.Petolino@Eng.Sun.COM added vi support (untested).
Remove .gz-ness from Makefile.PL.
1.00: Ignore $/, $\, $,.
Handle $include in RC file (by Roland Walker and Alexander Kourakos).
Support "unsupported ioctl()".
$rl_vi_replace_default_on_insert (by Russ Southern).
Now we closely match the new syntax of .inputrc (by David Wollmann).
Allow setenv PERL_RL_USE_TRK=0 to disable usage of Term::ReadKey.
With $inDOS vicmd_map had conflicting definitions for #27.
Removed spurious warnings from failing ioctl and stty.
1.01: Allow unset TERM.
Wrong display and warnings if UP/DOWN reach a short line from a
scrolled line
Highlight the h-scroll indicators "<" ">" same as the prompt.
Draw h-scroll indicator "<" even if a part of the prompt is shown.
Scroll right if more than $rl_margin empty space is on the right.
1.02: Move reread-init to C-x C-r. Make C-x u and C-x C-u do undo.
Set-mark: C-@, Control-Space on PC.
Exchange-point-and-mark: C-x C-x.
Kill-region: C-x C-w (as in lynx).
Copy-region-as-kill: C-x w (kinda similar to Emacs).
On PC, the last 2 and yank also available on Shift-Del, Control-Insert,
Shift-Insert.
Kill buffer is prepended or appended in natural manner.
Disable detection of Japanese multibyte characters - conflicts with
single-byte scripts. Reenable by $readline::_rl_japanese_mb = 1.
1.0201: Warnings due to a misprint fixed (thanks to Tatsuhiko Miyagawa).
1.0202: Warnings on highlight of the right scroll mark '<' fixed
(thanks to Slaven Rezic).
1.0203: Unconditional titlecasing of .inputrc "values" broke settings with
values such as 'vi' etc (thanks to Russ Southern for a report).
1.0204: Applied patches from Gurusamy and Slaven for vi mode:
Logic to move insertion point one char back was wrong;
Disable (YES!) choice of vi-mode based on $ENV{EDITOR}.
Just in case: generate proper warning if an old $ket-bug resurrects.
If readkey() returns undef, behave as on EOF.
New option --no-print to test.pl.
Try to move prompt to the next line if something is already on the
current line (controlled by $rl_scroll_nextline,
$rl_last_pos_can_backspace);
Wrong setting of $rl_last_pos_can_backspace will result:
a) 1 and wrong: empty line before the prompt;
b) 0 and wrong: if the line contains 1 char only,
(and no NL), the prompt will overwrite it;
test with `perl -Mblib test.pl --no-print',
type `print 1'.
[This is not the same as termcap/am!].
New variable $readline::rl_default_selected; if true, default string
is removed if the first keystroke is self-insert or BackSpace;
test.pl modified to test this too;
uses mr,me capabilities to highlight the default string.
New command: SaveLine (on M-#).
New command: PrintHistory (on M-h),
PreviousHistory and NextHistory take count.
The edited line is saved when one moves to history.
1.0205: Do not touch $ENV{HOME} unless defined.
$ENV{AUTOMATED_TESTING} to skip interactive tests.
1.0206: Shift-Ins, Control-Ins, Shift-Del operate on clipboard (if available)
(currently native on OS/2 only, otherwise uses commands
$ENV{RL_PASTE_CMD}, $ENV{RL_CLCOPY_CMD}, or file
$ENV{HOME}/.rl_cutandpaste).
In absense of mark, CopyRegionAsKillClipboard operates
on the whole line
Completely ignore unknown variables in .inputrc.
Moving cursor should remove the highlight of initial string too.
Change some local() to my().
Region between point and mark is highlighted.
Commands SelfInsert, Yank*, *DeleteChar remove this region
if $rl_delete_selection is TRUE (default).
(Set mark again to insert without removing.)
1.0207: If mark was active, redraw could be performed after Enter.
Untested Win32 support for cut&paste.
Alias $var_DeleteSelection for $rl_delete_selection (thus accessible
via .inputrc).
1.0208: Allow 2-arg form for test.pl
Open CONIN$ on Win (if asked for CON), and open RW (bug in Win devdriver).
Allow non-first Digit-Arguments to be escaped too.
Allow Alt-char translation to \M-char on DOSISH.
Apparently, self-loaded empty subroutines crash 5.8.2; 5.8.7 OK.
Work-around: put "1;" into non-implemented stuff.
1.03: Support for numeric arguments missed setting $lastcommand.
MinLine would not return the old value etc.
On MSWin32 without ReadKey, but with cygwin stty.exe:
do binmode (since Enter sends \r in these settings)
(XXXX we don't undo binmode; is it needed?)
(Only Control-Key work; do "Control-[ key" for Meta)
When optimizing "cursor" movement, take into account ornaments.
Optimize "cursor" movement even if we redraw the line.
Would display the string twice, even if cursor was at the end of
the line.
Add key binding for Control-Movement keys in xterm; and some OSX xterm.
Do not prefer HPUX xterm bindings to "normal" XTerm bindings.
New functions F_BeginUndoGroup F_EndUndoGroup F_DoNothing
F_MemorizeDigitArgument F_ForceMemorizeDigitArgument
F_UnmemorizeDigitArgument F_ResetDigitArgument
F_MergeInserts F_MemorizePos
(for better mouse support; untested)
Undo list merges together states where the only change is position
1.0301: F_TransposeWords implemented
Enable binmode() on MSWin32 if ReadMode succeeds.
Since "normal" getc() returns 0 on "special keys" (as opposed
to behaviour with reasonable CRT library, which would return
a pair of keypresses 0 "keynumber"), to access special keys
one needs something like C-[ for Esc, and C-[ c for Alt-c.
Support \key with key in "abfnrtvd" in init files (\b/\d as C-?/C-d)
and \ooo for octal.
Allow single quotes in macro specifications, and backwacked quotes.
Support macros (propagate numeric arguments).
New functions F_BeginPasteGroup; F_EndPasteGroup;
F_BeginEditGroup; F_EndEditGroup; bound to XTerm mouse editing
Support ~/ in INPUTRC name and $include;
$ENV{TRP_INPUTRC} overrides $ENV{INPUTRC}.
New functions F_DoMetaVersion; F_DoControlVersion; bound as in Emacs:
C-x Esc m and C-x Esc c.
1.0302: C-@ was incorrectly bound to a missing function SetPoint.
C-x Esc c @ and C-x Esc c Space are now bound to SetMark, so do this
( run in 0.655 second using v1.01-cache-2.11-cpan-2398b32b56e )