Mercurial > python-cmd2
view docs/freefeatures.rst @ 318:f44ad8de0d17
more flatten_lines work
author | cat@eee |
---|---|
date | Thu, 11 Feb 2010 11:25:35 -0500 |
parents | a08c50b7d3d3 |
children | 21584174d865 |
line wrap: on
line source
=================================== Features requiring no modifications =================================== These features are provided "for free" to a cmd_-based application simply by replacing ``import cmd`` with ``import cmd2 as cmd``. Script files ============ Commands can be loaded from, run from, and saved to text files. .. automethod:: cmd2.Cmd.do_load Output redirection ================== Commands at start ================= Python ====== Searchable command history ========================== All cmd_-based applications have access to previous commands with the up- and down- cursor keys. All cmd_-based applications on systems with the ``readline`` module also provide `bash-like history list editing`_. .. _`bash-like history list editing`: http://www.talug.org/events/20030709/cmdline_history.html ``cmd2`` makes a third type of history access available, consisting of these commands: .. automethod:: cmd2.Cmd.do_history Transcript-based testing ========================