Advertisement
Guest User

Untitled

a guest
Dec 20th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1.  
  2.  
  3. (defun make-dumped-stream (i/o input-output output-output)
  4. (make-two-way-stream
  5. (make-echo-stream i/o input-output)
  6. (make-broadcast-stream i/o output-output)))
  7.  
  8.  
  9. (with-open-file (input "/tmp/input.txt" :direction :output :if-does-not-exist :create :if-exists :append)
  10. (with-open-file (output "/tmp/output.txt" :direction :output :if-does-not-exist :create :if-exists :append)
  11. (let* ((*terminal-io* (make-dumped-stream *terminal-io* input output))
  12. (*standard-input* *terminal-io*)
  13. (*standard-output* *terminal-io*))
  14. (com.informatimago.common-lisp.interactive.interactive:repl))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement