replace.expect (463B)
1 # vim: set ft=expect: 2 spawn ./sled tests/testfile 3 interact timeout 1 return 4 send_user "Entering command mode" 5 send "\034" 6 interact timeout 1 return 7 send_user "Pressing \\" 8 send "\\" 9 interact timeout 1 return 10 send_user "Entering text" 11 send "4567\r" 12 interact timeout 1 return 13 send_user "Entering replacement" 14 send "some text\r" 15 interact timeout 1 return 16 send_user "Pressing Ctrl+S" 17 send "\023" 18 interact timeout 1 return 19 send_user "Pressing Ctrl+Q" 20 send "\021" 21 exit