[comp.windows.news] Help

lchirica@polyslo.CalPoly.EDU (Laurian Chirica) (10/02/88)

Could someone please sketch a solution to the following problem?  

Let's say I want two people to play a board game on two different
hosts/workstations.  They need to see and update identical copies of the
same window.  Changes made by any user on his/her window should show up
on the other's window. How can this be accomplished? Can a client access
two servers at the same time (or dynamically change the server)? 
Does someone have example code which does this sort of thing?

Any hints on how to approach this problem would be appreciated.

TIA,
--Laurian

PS.  Is there a comp.source.news group?  If not, maybe it is time to have 
one so people who (in my opinion) make very useful contribution with their
code do not feel guilty about posting large files in this group. 
-- 
Laurian M. Chirica                           ..!ihnp4!csun\
Computer Science Department                ..!ucbvax!voder |
California Polytechnic State University    ..!sdcrdcf!csun |!polyslo!lchirica
San Luis Obispo, CA 93407-(805)756-1332 ..!lll-crg!csustan/

lees@SBGEL.UCSB.EDU (07/27/89)

To any one who can answer:
I have just begun working on a SUN system and would like to transfer
my old software to this system. I have many programs which generate
POSTSCRIPT graphics (including grayshade patterns etc). Will I be
able to use the NeWS to plot my Postscript plots directly on my
graphics terminal? Is it a hassle? I would like to hear from someone
who is already doing this to find out the Pros and cons.
What about color graphics? Will NeWS support that (color PS commands)?
Please give me some advice on this or a telephone number where
I can speak with someone who has experience with PS and NeWS.

Thank You - Jonathan Lees, ICS/Hollister Res. Cen., UCSB, Santa BarbarCA 93106
             telephone# (805) 961-8421  lees@SBGEL.UCSB.edu

bwong@EAST.SUN.COM (Brian Wong - SE Sun Washington DC) (07/28/89)

NeWS definitely will be able plot yoru postscript on the Sun display.
graphics terminal?  probably not.  does your graphics terminal like postscript?

NeWS certainly supports color - it's the basis of the X11/NeWS windowing
system which does support full color (24-bit if you have the hardware).

brian

toms@ncifcrf.gov (Tom Schneider) (07/29/89)

In article <890726125142.49b8@sbgel.ucsb.edu> lees@SBGEL.UCSB.EDU writes:
>I have just begun working on a SUN system and would like to transfer
>my old software to this system. I have many programs which generate
>POSTSCRIPT graphics (including grayshade patterns etc). Will I be
>able to use the NeWS to plot my Postscript plots directly on my
>graphics terminal?

Yes. You can use PostScript directly on a NeWS terminal.

> Is it a hassle?

No, it's lovely because you can dump directly to the screen just the way you
dump to the printer.  There are two programs available, psh and psview.  If you
have a standard PostScript program in a file, then you can
  psh postscript.program
and it will appear on the background directly.  You can also run psh
interactively, which is a great way to test and learn.  Psview puts the graphic
into a window that you can manipulate.  This works well on a Sun3.

Unfortunately on a Sun4 there seems to be a bug in the server, and one can't
have more than one copy of psview around at a time so it's a pain in the
begeebers.  (DOES ANYONE KNOW ABOUT THIS BUG???)

Finally, it is possible to put a command into the postscript file that makes it
run directly on Unix.  (You just type the program name and it goes.)

>What about color graphics? Will NeWS support that (color PS commands)?

Yes, and if you have a color monitor you'll be able to see the colors! ;-)

>Thank You - Jonathan Lees, ICS/Hollister Res. Cen., UCSB, Santa BarbarCA 93106
>             telephone# (805) 961-8421  lees@SBGEL.UCSB.edu

  Tom Schneider
  National Cancer Institute
  Laboratory of Mathematical Biology
  Frederick, Maryland  21701-1013
  toms@ncifcrf.gov

snow@china.uu.net (John Snow) (08/01/90)

A couple of years ago someone here wrote a demonstration program under
NeWS.  It fell into disuse for a while, and now I have been given the
enviable task of updating it and geting it ready to show again.  This
is also mildly complicated by the fact that I can't even get my
environment set up right.  So could someone help me solve a couple of
minor(?) problems?

I have a SPARC station 1, and for the last year I have been running X
Windows with the t shell.  I got NeWS running by copying some old .ps
files and am slowly figuring out what's going on, but haven't found
any references to my problems.

When I start the server using 'news_server-sparc', it opens an 'nterm'
window and an emacs window.  The emacs window seems to work fine
(except I can't set the colors), but the nterm window does not.  The
first thing I have to do is manually source my .login file to get my
environment.  Any windows I open after that seem to do that
themselves.  But my main problem is the command line editing.  The
emacs style editing capabilities are there, but it only recognizes the
control keys (ie ^p, ^n, ^f, ^b) and not the keypad arrow keys like it
did under X, and the cutting and pasting functions seem to work
randomly, when they bother to work at all.  One more minor problem,
when I started posting this article I was dropped into an emacs
editor, which is fine, but this editor does not recognize the cursor
or about half my key bindings, which is not.  Could someone please
point me in the right direction for solving these, and hopefully
future, problem in this strange new world of NeWS.

Thanks for any help you can give me.

		John Snow
-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: John Snow  - MDC          | any opinions are purely accidental
:: Denver, Colorado          | and not the fault of the management
:: Try mailing to: [snow@salt.uu.net] or maybe [uunet!salt!snow]