[comp.sys.next] Stdin and stdout windows

dgc@joshua.math.ucla.edu (02/16/90)

I have an existing binary program (obtained using atom from a sun3
binary) which uses stdin and stdout for input and output.  I would
like to create two scrolling windows on my NeXT.  They should support
simple (mouse-type) editing.  What I would like is that one (the "input"
window) should be piped to stdin of my program and the other (the
"output" window) piped from stdout of my program.  This should be such
that if I select (with the mouse) some text in the input window and
press the <enter> key, then the selected text is piped to stdin of my
program.  It would be nice if no text were selected, then the line
containing the cursor would be sent to stdin.  Input should always be
terminated by a carriage return.

Similarly, output should be sent to the output window (in effect, the
existing shell window does this now).

It seems that such windows would be of general usefulness and perhaps
programs to create them already exist?

Does anyone know?

Thanks in advance.

dgc

David G. Cantor
Department of Mathematics
University of California at Los Angeles
Internet:  dgc@math.ucla.edu
UUCP:      ...!{randvax, sdcrdcf, ucbvax}!ucla-cs!dgc