Skip to content

Commit 4c8203f

Browse files
authored
Merge pull request #13 from gitdev-bash/stdin-update
Add stdin prompt
2 parents 636520b + b59931c commit 4c8203f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

piduck.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
import argparse
3+
import readline
34
from importlib import import_module
45
from time import sleep
56
import sys
@@ -115,8 +116,9 @@ def main():
115116
else:
116117
while True:
117118
try:
118-
line = input()
119+
line = input("d# ")
119120
except EOFError:
121+
print("EOF")
120122
break
121123
if not line:
122124
break
@@ -172,5 +174,6 @@ def main():
172174
try:
173175
main()
174176
except KeyboardInterrupt:
177+
print("EOF")
175178
pass
176179
exit(0)

0 commit comments

Comments
 (0)