diff options
author | Fred Hebert <[email protected]> | 2012-12-20 08:41:33 -0500 |
---|---|---|
committer | Fred Hebert <[email protected]> | 2013-01-19 11:20:57 -0500 |
commit | 527ca3d44cad4229ae8ba636209fd921f3f6d7d5 (patch) | |
tree | b22c7fcd312109e076e3d0a5938aa62ee6002f4d /lib/common_test/ebin | |
parent | b0e4f20f2abde9fc264995317966f373775e2b2b (diff) | |
download | otp-527ca3d44cad4229ae8ba636209fd921f3f6d7d5.tar.gz otp-527ca3d44cad4229ae8ba636209fd921f3f6d7d5.tar.bz2 otp-527ca3d44cad4229ae8ba636209fd921f3f6d7d5.zip |
Add search to Erlang shell's history
Search mode can be entered by pressing ctrl-r. Enter terms and press
ctrl-r again to search backwards, or ctrl-s to then search forward (if
you terminal doesn't eat up that one). Press enter to execute the line,
or use tab, arrow keys, or other control sequences (^D, ^K, etc.) to
exit search mode while remaining on the last found line. Exiting is also
possible by pressing the escape key twice.
The search mode is a simpler version of the one available in bash or
zsh shells.
This adds a few modes to the shell (search, on top of none and meta) in
group.erl for history search, and a few more in edlin.erl to change the
meaning of control sequences while searching.
Diffstat (limited to 'lib/common_test/ebin')
0 files changed, 0 insertions, 0 deletions