changeset 23:07aae987b754

load great except for prompt markers
author devlinjs@FA7CZA6N1254998.wrightpatterson.afmc.ds.af.mil
date Wed, 19 Dec 2007 14:40:58 -0500
parents 221095f3a4af
children 7a89805a47b1
files cmd2.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Wed Dec 19 14:21:30 2007 -0500
+++ b/cmd2.py	Wed Dec 19 14:40:58 2007 -0500
@@ -172,6 +172,8 @@
 	self.stdin.close()
 	self.stdin = stdin
 	self.use_rawinput = use_rawinput
+	self.stdin.flush()
+	self.lastcmd = ''
 
 class HistoryItem(str):
     def __init__(self, instr):