(self)
| 978 | self.register_magics(TerminalMagics) |
| 979 | |
| 980 | def init_alias(self): |
| 981 | # The parent class defines aliases that can be safely used with any |
| 982 | # frontend. |
| 983 | super(TerminalInteractiveShell, self).init_alias() |
| 984 | |
| 985 | # Now define aliases that only make sense on the terminal, because they |
| 986 | # need direct access to the console in a way that we can't emulate in |
| 987 | # GUI or web frontend |
| 988 | if os.name == 'posix': |
| 989 | for cmd in ('clear', 'more', 'less', 'man'): |
| 990 | self.alias_manager.soft_define_alias(cmd, cmd) |
| 991 | |
| 992 | def __init__(self, *args, **kwargs) -> None: |
| 993 | super().__init__(*args, **kwargs) |
nothing calls this directly
no test coverage detected