1444 except KeyboardInterrupt: |
1444 except KeyboardInterrupt: |
1445 pass |
1445 pass |
1446 else: |
1446 else: |
1447 if not self.echoInput: |
1447 if not self.echoInput: |
1448 cmd = self.buff |
1448 cmd = self.buff |
|
1449 self.buff = "" |
|
1450 elif cmd: |
|
1451 cmd = cmd[len(self.prompt):] |
1449 self.inRawMode = False |
1452 self.inRawMode = False |
1450 self.echoInput = True |
1453 self.echoInput = True |
1451 if not cmd: |
1454 |
1452 cmd = '' |
|
1453 else: |
|
1454 cmd = cmd[len(self.prompt):] |
|
1455 self.dbs.remoteRawInput(cmd) |
1455 self.dbs.remoteRawInput(cmd) |
1456 |
1456 |
1457 def __useHistory(self): |
1457 def __useHistory(self): |
1458 """ |
1458 """ |
1459 Private method to display a command from the history. |
1459 Private method to display a command from the history. |
1460 """ |
1460 """ |
1461 if self.histidx < len(self.history): |
1461 if self.histidx < len(self.history): |