mirror of
https://github.com/hymkor/lispect.git
synced 2026-08-27 20:36:34 -04:00
(expect*) supports the option 'timeout SECOND
This commit is contained in:
+9
-2
@@ -2,7 +2,7 @@
|
||||
(let ((ctrlc (format nil "~A" (convert 3 <character>))))
|
||||
(block main
|
||||
(while t
|
||||
(case (expect* "xxx" "yyy")
|
||||
(case (expect* 'timeout 10 "xxx" "yyy")
|
||||
((0)
|
||||
(sendln (string-append ctrlc "exit"))
|
||||
(return-from main nil)
|
||||
@@ -10,4 +10,11 @@
|
||||
((1)
|
||||
(sendln (string-append ctrlc "rem"))
|
||||
)
|
||||
))))
|
||||
((-1)
|
||||
(sendln (string-append ctrlc "exit"))
|
||||
(return-from main nil)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user