@@ -0,0 +1,89 @@
1+#!/usr/bin/expect -f
2+
3+set timeout -1
4+spawn ./prybar-tcl -q -i
5+match_max 100000
6+expect -exact "--> "
7+send -- "p"
8+expect -exact "\r--> p\[0K\r\[5C"
9+send -- "u"
10+expect -exact "\r--> pu\[0K\r\[6C"
11+send -- "t"
12+expect -exact "\r--> put\[0K\r\[7C"
13+send -- "s"
14+expect -exact "\r--> puts\[0K\r\[8C"
15+send -- " "
16+expect -exact "\r--> puts \[0K\r\[9C"
17+send -- "\""
18+expect -exact "\r--> puts \"\[0K\r\[10C"
19+send -- "h"
20+expect -exact "\r--> puts \"h\[0K\r\[11C"
21+send -- "e"
22+expect -exact "\r--> puts \"he\[0K\r\[12C"
23+send -- "y"
24+expect -exact "\r--> puts \"hey\[0K\r\[13C"
25+send -- "\""
26+expect -exact "\r--> puts \"hey\"\[0K\r\[14C"
27+send -- "\r"
28+expect -exact "\r--> puts \"hey\"\[0K\r\[14C\r
29+hey\r\r
30+\r
31+--> "
32+send -- "p"
33+expect -exact "\r--> p\[0K\r\[5C"
34+send -- "u"
35+expect -exact "\r--> pu\[0K\r\[6C"
36+send -- "t"
37+expect -exact "\r--> put\[0K\r\[7C"
38+send -- "s"
39+expect -exact "\r--> puts\[0K\r\[8C"
40+send -- " "
41+expect -exact "\r--> puts \[0K\r\[9C"
42+send -- "\""
43+expect -exact "\r--> puts \"\[0K\r\[10C"
44+send -- "h"
45+expect -exact "\r--> puts \"h\[0K\r\[11C"
46+send -- "e"
47+expect -exact "\r--> puts \"he\[0K\r\[12C"
48+send -- "y"
49+expect -exact "\r--> puts \"hey\[0K\r\[13C"
50+send -- "\""
51+expect -exact "\r--> puts \"hey\"\[0K\r\[14C"
52+send -- "\r"
53+expect -exact "\r--> puts \"hey\"\[0K\r\[14C\r
54+hey\r\r
55+\r
56+--> "
57+send -- "p"
58+expect -exact "\r--> p\[0K\r\[5C"
59+send -- "u"
60+expect -exact "\r--> pu\[0K\r\[6C"
61+send -- "t"
62+expect -exact "\r--> put\[0K\r\[7C"
63+send -- "s"
64+expect -exact "\r--> puts\[0K\r\[8C"
65+send -- " "
66+expect -exact "\r--> puts \[0K\r\[9C"
67+send -- "h"
68+expect -exact "\r--> puts h\[0K\r\[10C"
69+send -- "e"
70+expect -exact "\r--> puts he\[0K\r\[11C"
71+send -- "e"
72+expect -exact "\r--> puts hee\[0K\r\[12C"
73+send -- "e"
74+expect -exact "\r--> puts heee\[0K\r\[13C"
75+send -- "e"
76+expect -exact "\r--> puts heeee\[0K\r\[14C"
77+send -- "e"
78+expect -exact "\r--> puts heeeee\[0K\r\[15C"
79+send -- "e"
80+expect -exact "\r--> puts heeeeee\[0K\r\[16C"
81+send -- "y"
82+expect -exact "\r--> puts heeeeeey\[0K\r\[17C"
83+send -- "\r"
84+expect -exact "\r--> puts heeeeeey\[0K\r\[17C\r
85+heeeeeey\r\r
86+\r
87+--> "
88+send -- ""
89+expect eof