comparison cmd2.py @ 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
comparison
equal deleted inserted replaced
22:221095f3a4af 23:07aae987b754
170 self.use_rawinput = False 170 self.use_rawinput = False
171 self.cmdloop() 171 self.cmdloop()
172 self.stdin.close() 172 self.stdin.close()
173 self.stdin = stdin 173 self.stdin = stdin
174 self.use_rawinput = use_rawinput 174 self.use_rawinput = use_rawinput
175 self.stdin.flush()
176 self.lastcmd = ''
175 177
176 class HistoryItem(str): 178 class HistoryItem(str):
177 def __init__(self, instr): 179 def __init__(self, instr):
178 str.__init__(self, instr) 180 str.__init__(self, instr)
179 self.lowercase = self.lower() 181 self.lowercase = self.lower()