From: Arseny S. <am...@ic...> - 2003-05-04 21:52:24
|
Hello Sam, Monday, May 05, 2003, 12:11:48 AM, you wrote: >> > CMUCL uses something like (fd-to-stream (dup 0)). >> > but 0/1/2 is a unixism. >> >> > Suggestions? >> Command-line option ? > no - it should be possible to do > (with-open-stream (s (open-stdin-in-binary-mode)) > ...) > that's why I want a dup() there - so that the user will be able to > close the stream safely (coerce s 'binary-terminal-stream) ? I'm full of ideas. Btw the distinction between text and binary modes in lisp is in element-type, right ? -- Best regards, Arseny |