moo.shell.editor.run_editor

async moo.shell.editor.run_editor(initial_text='', content_type='text', title=None)

Display a full-screen text editor over the SSH terminal and return the final text, or None if the user cancels.

Parameters:
  • initial_text (str) – initial buffer contents

  • content_type (str) – “python”, “json”, or “text” — controls syntax highlighting

  • title (str | None) – optional frame title; defaults to a content_type label

Return type:

str | None