Skip to content

Commit b1924fb

Browse files
committed
Minor bug fix
1 parent b70c15c commit b1924fb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd2.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ def _surround_ansi_escapes(prompt, start="\x01", end="\x02"):
972972
def pseudo_raw_input(self, prompt):
973973
"""
974974
began life as a copy of cmd's cmdloop; like raw_input but
975-
975+
976976
- accounts for changed stdin, stdout
977977
- if input is a pipe (instead of a tty), look at self.echo
978978
to decide whether to print the prompt and the input
@@ -984,8 +984,7 @@ def pseudo_raw_input(self, prompt):
984984
if self.use_rawinput:
985985
try:
986986
if sys.stdin.isatty():
987-
sys.stdout.write(safe_prompt)
988-
line = sm.input()
987+
line = sm.input(safe_prompt)
989988
else:
990989
line = sm.input()
991990
if self.echo:

0 commit comments

Comments
 (0)