🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11669

can I use a window like a device?

#11669
From: Joe Smith
Date: Thu, 23 Mar 1989 12:04
24 lines
1448 bytes
What magic incantation is required to start a sunview tool and repeatedly
write to it like it was a hard-wired device?  Perhaps an example would be
clearer.  Here's how I guessed it might work (but doesn't):

sunplot &		# sunview plot(3) viewer starts up
[1] 1418
ps
...
 1418 p3 T     0:04 sunplot
 1419 p3 R     0:00 ps
...
graph <xy >/dev/ttyp3           # send a graph to sunplot
graph -b <xy2 >/dev/ttyp3       # overlay another graph, and so on

This is (obviously) no good, since all the processes started from that
cmdtool use ttyp3.  I've tried redirecting from /dev/ptyxx (a wild guess):
that almost works, but behaves oddly on several counts.

It's a trivial point, but I'm curious.
--
 Joe Smith
 University of Pennsylvania                    jes@mbio.med.upenn.edu
 Dept. of Biochemistry and Biophysics          (215) 898-8348
 Philadelphia, PA 19104-6059
Technical Details
Message-ID: <JES.89Mar13193744@mbio.med.upenn.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!husc6!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!husc6!rice!sun-spots-request
From: jes@mbio.med.upenn.edu (Joe Smith)
Newsgroups: comp.sys.sun
Subject: can I use a window like a device?
Keywords: Windows
Message-ID: <JES.89Mar13193744@mbio.med.upenn.edu>
Date: 23 Mar 89 12:04:03 GMT
Sender: usenet@rice.edu
Organization: University of Pennsylvania, Philadelphia, PA
Lines: 24
Approved: Sun-Spots@rice.edu
Original-Date: 14 Mar 89 00:37:44 GMT
X-Sun-Spots-Digest: Volume 7, Issue 207, message 15 of 15