|  | @@ -213,27 +213,6 @@ class PwmanCli(cmd.Cmd):
 | 
											
												
													
														|  |              print "%s " % (t.get_name()),
 |  |              print "%s " % (t.get_name()),
 | 
											
												
													
														|  |          print
 |  |          print
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        def heardEnter():
 |  | 
 | 
											
												
													
														|  | -            i,o,e = select.select([sys.stdin],[],[],0.0001)
 |  | 
 | 
											
												
													
														|  | -            for s in i:
 |  | 
 | 
											
												
													
														|  | -                if s == sys.stdin:
 |  | 
 | 
											
												
													
														|  | -                    input = sys.stdin.readline()
 |  | 
 | 
											
												
													
														|  | -                return True
 |  | 
 | 
											
												
													
														|  | -            return False
 |  | 
 | 
											
												
													
														|  | -        
 |  | 
 | 
											
												
													
														|  | -        def waituntil_enter(somepredicate,timeout, period=0.25):
 |  | 
 | 
											
												
													
														|  | -            mustend = time.time() + timeout
 |  | 
 | 
											
												
													
														|  | -            while time.time() < mustend:
 |  | 
 | 
											
												
													
														|  | -                if somepredicate():
 |  | 
 | 
											
												
													
														|  | -                    print 'Will call cls'
 |  | 
 | 
											
												
													
														|  | -                    self.do_cls("")
 |  | 
 | 
											
												
													
														|  | -                    break
 |  | 
 | 
											
												
													
														|  | -                time.sleep(period)
 |  | 
 | 
											
												
													
														|  | -            return False        
 |  | 
 | 
											
												
													
														|  | -        #print "Flushing in 5 sec., Enter to flush before, or 'h' to hold".
 |  | 
 | 
											
												
													
														|  | -        #self.do_cls("")
 |  | 
 | 
											
												
													
														|  | -        waituntil_enter(heardEnter, 5)        
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      def complete_filter(self, text, line, begidx, endidx):
 |  |      def complete_filter(self, text, line, begidx, endidx):
 | 
											
												
													
														|  |          strings = []
 |  |          strings = []
 |