summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-23 22:09:43 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-08-23 22:09:43 -0400
commitb1924fbdac9f25361a5e202c83e923d32ad1c8ea (patch)
treed6ef8adda59bf4bc12bac1865337588fe595e8e4 /cmd2.py
parentb70c15c017219ddc4c5d3e7c9715d7bc378bd9cd (diff)
downloadcmd2-git-b1924fbdac9f25361a5e202c83e923d32ad1c8ea.tar.gz
Minor bug fix
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd2.py b/cmd2.py
index f7a0d042..dc34df6b 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -972,7 +972,7 @@ class Cmd(cmd.Cmd):
def pseudo_raw_input(self, prompt):
"""
began life as a copy of cmd's cmdloop; like raw_input but
-
+
- accounts for changed stdin, stdout
- if input is a pipe (instead of a tty), look at self.echo
to decide whether to print the prompt and the input
@@ -984,8 +984,7 @@ class Cmd(cmd.Cmd):
if self.use_rawinput:
try:
if sys.stdin.isatty():
- sys.stdout.write(safe_prompt)
- line = sm.input()
+ line = sm.input(safe_prompt)
else:
line = sm.input()
if self.echo: