314
|
1 ===================================
|
|
2 Features requiring no modifications
|
|
3 ===================================
|
|
4
|
|
5 These features are provided "for free" to a cmd_-based application
|
|
6 simply by replacing ``import cmd`` with ``import cmd2 as cmd``.
|
|
7
|
|
8 Searchable command history
|
|
9 ==========================
|
|
10
|
|
11 All cmd_-based applications have access to previous commands with
|
|
12 the up- and down- cursor keys.
|
|
13
|
|
14 All cmd_-based applications on systems with the ``readline`` module
|
|
15 also provide `bash-like history list editing`_.
|
|
16
|
|
17 .. _`bash-like history list editing`: http://www.talug.org/events/20030709/cmdline_history.html
|
|
18
|
|
19 ``cmd2`` makes a third type of history access available, consisting of these commands:
|
|
20
|
|
21 .. automethod:: cmd2.Cmd.do_history
|
|
22
|