(self)
| 464 | self.history_file) |
| 465 | |
| 466 | def disable_echoctl(self): |
| 467 | try: |
| 468 | # termios module might not be available. Ignore ImportError if so. |
| 469 | import termios |
| 470 | |
| 471 | self.old_flags = termios.tcgetattr(sys.stdin) |
| 472 | new_flags = self.old_flags |
| 473 | new_flags[3] &= ~termios.ECHOCTL |
| 474 | termios.tcsetattr(sys.stdin, termios.TCSADRAIN, new_flags) |
| 475 | except: |
| 476 | pass |
| 477 | |
| 478 | def restore_echoctl(self): |
| 479 | try: |