rebinding *error-output* and *terminal-io*
Hi Huggers,
I’m trying to port some code from Allegro to Lispworks. One function in Allegro allowed us to set up a “bidirectional-terminal-stream” with the input and output specified as file descriptors (i.e., 0 for stdin, 1 for stdout, 2 for stderr). The program I’m porting took advantage of this to rebind the output part to stderr, and I’m trying to figure out how to do this in Lispworks. By default, apparently, *error-output* and *standard-output* are the same system::terminal stream when running lispworks from the shell, so this isn’t just a matter of rebinding *terminal-io* to (make-two-way-stream *standard-input* *error-output*). I care about this because the application is running as a pipe, so needs to deal with the various file descriptors bound by the shell.
Thanks for any hints!
--
Bradford W. Miller
Senior Principal Cognitive/Computer Scientist
DD(X) System Architecture
Software Engineering and HSI Center
Raytheon, Inc.
1847 West Main Road M/S N19
Portsmouth, RI 02871-1087
(401) 842-3578 (v)
(401) 842-2040 (f)