[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Only print "type your message now" if stdin is a tty.
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv28722/lib/mixminion
Modified Files:
ClientMain.py
Log Message:
Only print "type your message now" if stdin is a tty.
Index: ClientMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientMain.py,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- ClientMain.py 1 Apr 2004 04:20:42 -0000 1.176
+++ ClientMain.py 21 Apr 2004 22:15:38 -0000 1.177
@@ -1236,7 +1236,8 @@
try:
if inFile == '-':
- print "Enter your message now. Type %s when you are done."%(
+ if os.isatty(sys.stdin.fileno()):
+ print "Enter your message. Type %s when you are done."%(
EOF_STR)
message = sys.stdin.read()
else: