@cmd('<STR_LIT>', options='<STR_LIT>')<EOL>def send_keys(pymux, variables):
pane = pymux.arrangement.get_active_pane()<EOL>if pane.display_scroll_buffer:<EOL><INDENT>raise CommandException('<STR_LIT>')<EOL><DEDENT>for key in variables['<STR_LIT>']:<EOL><INDENT>try:<EOL><INDENT>keys_sequence = pymux_key_to_prompt_toolkit_key_sequence(key)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise CommandException('<STR_LIT>' % (key, ))<EOL><DEDENT>for k in keys_sequence:<EOL><INDENT>pane.process.write_key(k)<EOL><DEDENT><DEDENT>
Send key strokes to the active process.