Path: utzoo!attcan!uunet!lll-winken!ames!ucsd!rutgers!bellcore!spectral!sjs From: sjs@spectral.ctt.bellcore.com (Stan Switzer) Newsgroups: comp.windows.news Subject: No class whatsoever Message-ID: <13676@bellcore.bellcore.com> Date: 27 Jan 89 15:09:25 GMT Sender: news@bellcore.bellcore.com Reply-To: sjs@ctt.bellcore.com (Stan Switzer) Organization: Bellcore Lines: 156 This is another silly little program to amuse you and annoy your friends. Though it serves no useful purpose (my specialty!), it does illustrate how to play with canvases, events, interests, etc. directly -- it does not use any of the higher-level NeWS mechanisms like classes or event managers. The idea comes from a program by Chris Warth (ihnp4!ulysses!csw). As always, enjoy! Stan Switzer sjs@ctt.bellcore.com "Work is the curse of the drinking class." ------------------- #!/bin/sh # # Catch me if you can! # # Copyright (C) 1989 by Stan Switzer. All rights reserved. # This program is provided for unrestricted use, provided that this # copyright message is preserved. There is no warranty, and no author # or distributer accepts responsibility for any damage caused by this # program. # # Stan Switzer sjs@ctt.bellcore.com # # This program is an elaboration on a theme by # Chris Warth (ihnp4!ulysses!csw) # # usage: # catchme [options] [message] # options: # @system run it on someone else's system # @@system a sneakier way to do the same SYS= CMD=psh N=/usr/NeWS/bin STR= for ARG do case "$ARG" in @@* ) SYS=`expr "$ARG" : '..\(.*\)'` CMD="rsh $SYS sh -c 'NEWSSERVER=\"`setnewshost $SYS`\" $N/psh'";; @* ) SYS=`expr "$ARG" : '.\(.*\)'`;; * ) STR="$STR $ARG";; esac done if test -z "$NEWSHOME"; then NEWSHOME=/usr/NeWS; fi case $PATH in */NeWS/bin ) ;; * ) PATH=$PATH:$NEWSHOME/bin; export PATH;; esac if test -n "$SYS" then if NEWSSERVER=`setnewshost $SYS` then export NEWSSERVER else exit 1 fi fi if test -z "$STR"; then STR=" Catch Me!"; fi { echo "/Str ($STR ) def"; cat <