(self)
| 509 | self.register_magics(TerminalMagics) |
| 510 | |
| 511 | def init_alias(self): |
| 512 | # The parent class defines aliases that can be safely used with any |
| 513 | # frontend. |
| 514 | super(TerminalInteractiveShell, self).init_alias() |
| 515 | |
| 516 | # Now define aliases that only make sense on the terminal, because they |
| 517 | # need direct access to the console in a way that we can't emulate in |
| 518 | # GUI or web frontend |
| 519 | if os.name == 'posix': |
| 520 | for cmd in ('clear', 'more', 'less', 'man'): |
| 521 | self.alias_manager.soft_define_alias(cmd, cmd) |
| 522 | |
| 523 | |
| 524 | def __init__(self, *args, **kwargs): |
nothing calls this directly
no test coverage detected