Function reference
-
cmd()cmd_bash()cmd_r()cmd_docker()cmd_asciinema() - Command composition
-
exit() - End a rexpect session
-
spawn() - Spawn a new rexpect session
-
send_backspace() - Send Backspace
-
send_control_c() - Send Control-C
-
send_enter() - Send Enter
-
send_lines() - Send literal text
-
send_script() - Send script
-
ends_with_prompt() - Does the output end with a prompt?
-
expect_prompt() - Expect prompt
-
expect_silence() - Expect silence
-
has_prompt() - Does session have a prompt?
-
prompt()`prompt<-`()set_prompt() - Prompt of an rexpect session
-
prompts - Commonly used prompts
-
cursor() - Get cursor position on screen
-
length(<rexpect_session>) - Number of lines
-
read_all() - Read all output
-
read_last_line() - Read last line
-
read_output() - Read a portion of all output
-
read_screen() - Read screen
-
wait() - Wait