summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-09-21 00:34:51 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-09-21 00:34:51 -0400
commite17d0e96990e0d8215ff1f1d234c46ca7c8f01ac (patch)
tree045c687a08bcea3614cffb139207962fbbc3786a
parent6ea424ecd339b31eead24bfa316f0717eefa3afd (diff)
downloadcmd2-git-e17d0e96990e0d8215ff1f1d234c46ca7c8f01ac.tar.gz
Updated a couple example transcripts now that colors is no longer True/False
Also: - Minor whitespace tweaks to new colors.py example
-rwxr-xr-xexamples/colors.py6
-rw-r--r--examples/transcripts/exampleSession.txt2
-rw-r--r--examples/transcripts/transcript_regex.txt2
3 files changed, 4 insertions, 6 deletions
diff --git a/examples/colors.py b/examples/colors.py
index fb2de045..8765aee0 100755
--- a/examples/colors.py
+++ b/examples/colors.py
@@ -22,8 +22,6 @@ Terminal
Always
poutput() and pfeedback() never strip ANSI escape sequences, regardless of
the output destination
-
-
"""
import random
@@ -42,7 +40,7 @@ FG_COLORS = {
'cyan': Fore.CYAN,
'white': Fore.WHITE,
}
-BG_COLORS ={
+BG_COLORS = {
'black': Back.BLACK,
'red': Back.RED,
'green': Back.GREEN,
@@ -50,7 +48,7 @@ BG_COLORS ={
'blue': Back.BLUE,
'magenta': Back.MAGENTA,
'cyan': Back.CYAN,
- 'white':Back.WHITE,
+ 'white': Back.WHITE,
}
diff --git a/examples/transcripts/exampleSession.txt b/examples/transcripts/exampleSession.txt
index 6318776f..38fb0659 100644
--- a/examples/transcripts/exampleSession.txt
+++ b/examples/transcripts/exampleSession.txt
@@ -3,7 +3,7 @@
# The regex for editor will match whatever program you use.
# regexes on prompts just make the trailing space obvious
(Cmd) set
-colors: /(True|False)/
+colors: /(Terminal|Always|Never)/
continuation_prompt: >/ /
debug: False
echo: False
diff --git a/examples/transcripts/transcript_regex.txt b/examples/transcripts/transcript_regex.txt
index 08588ab1..6980fac6 100644
--- a/examples/transcripts/transcript_regex.txt
+++ b/examples/transcripts/transcript_regex.txt
@@ -3,7 +3,7 @@
# The regex for editor will match whatever program you use.
# regexes on prompts just make the trailing space obvious
(Cmd) set
-colors: /(True|False)/
+colors: /(Terminal|Always|Never)/
continuation_prompt: >/ /
debug: False
echo: False