MCPcopy Create free account
hub / github.com/NetSys/bess / restore_echoctl

Method restore_echoctl

bessctl/cli.py:478–488  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

476 pass
477
478 def restore_echoctl(self):
479 try:
480 cur_flags = termios.tcgetattr(sys.stdin)
481 new_flags = cur_flags
482 if self.old_flags[3] & termios.ECHOCTL:
483 new_flags[3] |= termios.ECHOCTL
484 else:
485 new_flags[3] &= ~termios.ECHOCTL
486 termios.tcsetattr(sys.stdin, termios.TCSADRAIN, new_flags)
487 except:
488 pass
489
490 def go_interactive(self):
491 try:

Callers 1

loopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected