(self)
| 301 | warnings.showwarning = fxn |
| 302 | |
| 303 | def get_stty_echo(self): |
| 304 | termios = self.try_get_module('termios') |
| 305 | if not os.isatty(fd := sys.__stdin__.fileno()): |
| 306 | return None |
| 307 | attrs = termios.tcgetattr(fd) |
| 308 | lflags = attrs[3] |
| 309 | return bool(lflags & termios.ECHO) |
| 310 | def restore_stty_echo(self, echo): |
| 311 | termios = self.get_module('termios') |
| 312 | attrs = termios.tcgetattr(fd := sys.__stdin__.fileno()) |
nothing calls this directly
no test coverage detected