code: def print_last_kbd_macro(event):
      " Print the last keboard macro. "
      # TODO: Make the format suitable for the inputrc file.
      def print_macro():
          for k in event.cli.input_processor.macro:
              print(k)
      event.cli.run_in_terminal(print_macrof print_last_kbd_macro(event):
      " Print the last keboard macro. "
      # TODO: Make the format suitable for the inputrc file.
      def print_macro():
          for k in event.cli.input_processor.macro:
              print(k)
      event.cli.run_in_terminal(print_macro)
docs: Print the last keboard macro.