(expect*) supports the option 'timeout SECOND

This commit is contained in:
HAYAMA_Kaoru
2024-11-30 01:09:34 +09:00
parent 43ae74149d
commit c99698837d
3 changed files with 44 additions and 8 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func mains(args []string) error {
gmnlisp.Functions{
gmnlisp.NewSymbol("sendln"): gmnlisp.Function1(g.sendln),
gmnlisp.NewSymbol("spawn"): &gmnlisp.Function{Min: 1, F: g.spawn},
gmnlisp.NewSymbol("expect*"): &gmnlisp.Function{Min: 1, F: g.expect},
gmnlisp.NewSymbol("expect*"): gmnlisp.SpecialF(g.expect),
})
if len(args) <= 0 {