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

Method disable_echoctl

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

Source from the content-addressed store, hash-verified

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:

Callers 1

loopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected