diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/exampleSession.txt | 3 | ||||
| -rw-r--r-- | examples/transcript_regex.txt | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/examples/exampleSession.txt b/examples/exampleSession.txt index a4eef91f..893d7b59 100644 --- a/examples/exampleSession.txt +++ b/examples/exampleSession.txt @@ -1,3 +1,4 @@ +# Run this transcript with "python example.py -t exampleSession.txt" (Cmd) help Documented commands (type help <topic>): @@ -62,6 +63,8 @@ our BDFL blah blah blah (Cmd) & look, a shortcut! look, a shortcut! +(Cmd) show color +colors: /(True|False)/ (Cmd) set prompt "---> " prompt - was: (Cmd) now: ---> diff --git a/examples/transcript_regex.txt b/examples/transcript_regex.txt new file mode 100644 index 00000000..b8e0e654 --- /dev/null +++ b/examples/transcript_regex.txt @@ -0,0 +1,18 @@ +# Run this transcript with "python example.py -t transcript_regex.txt" +# The regex for editor matches any word until first space. The one for colors is because no color on Windows. +(Cmd) set +abbrev: True +autorun_on_edit: True +case_insensitive: True +colors: /(True|False)/ +continuation_prompt: > +debug: False +default_file_name: command.txt +echo: False +editor: /([^\s]+)/ +feedback_to_output: False +locals_in_py: True +maxrepeats: 3 +prompt: (Cmd) +quiet: False +timing: False |
