Files
lispect/example.lsp
T
2024-11-29 23:48:08 +09:00

14 lines
335 B
Common Lisp

(spawn "cmd.exe")
(let ((ctrlc (format nil "~A" (convert 3 <character>))))
(block main
(while t
(case (expect* "xxx" "yyy")
((0)
(sendln (string-append ctrlc "exit"))
(return-from main nil)
)
((1)
(sendln (string-append ctrlc "rem"))
)
))))