@magic.line_magic
    @magic_arguments()
    @argument('buffer_address', type=hexint_aligned, nargs='?', default=console_address, help='Specify a different address for the console_buffer_t data structure')
    @argument('-f', type=str, default=None, metavar='FILE', help='Append output to a text file')
    @argument('--slow', action='store_true', help='Use slower but possibly more reliable memory reads')
    def console(self, line):
        args = parse_argstring(self.console, line)
        d = self.shell.user_ns['d']
        console_mainloop(d, buffer=args.buffer_address, log_filename=args.f,
            use_fast_read = not args.slow)
Read console output until KeyboardInterrupt.
dataset/ETHPy150Open scanlime/coastermelt/backdoor/shell_magics.py/ShellMagics.console