1-- We expect the caller to have spawned the appropriate application 2write "text\r" 3match "text" 4 5write "^C" 6 7-- If SIGINT isn't being ignored, we'll bail out somewhere in the process of 8-- writing to the pty or trying to read from it to perform the following match. 9write "text\r" 10match "text" 11 12-- Finally, just close it out cleanly. 13write "^D" 14eof() 15