From: hardy@gordito.xor.com (Darren R. Hardy)
Subject: Re: Virtual WTBR!
Summary: WTBR display programs
Organization: XOR Computer Systems
Date: Tue, 14 Apr 1992 22:14:55 GMT

In article <1992Apr14.171251.16730@ucsu.Colorado.EDU> grusin@tramp.Colorado.EDU (GRUSIN MICHAEL) writes:
>
>
>This is truly a great day for WTBR (tm) fans everywhere! (Or at least
>those who are also network.heads).  Nice job, Hans & co.!
>
>I suppose the next step is for someone to post a script which will
>automatically uudecode the latest strip and use it as the background
>for a graphics terminal... all from your .logon sequence.  Anyone? =)
>
>-Mike (grusin@tramp.colorado.edu)
>
>PS: get Holly to post some stuff too! =)

I've written a couple simple programs that will allow you to easily
save the WTBR cartoons and to display the latest one under X Windows.

These programs allow you to save the posted WTBR (Where the Buffalo
Roam) gif images under your home directory (~/wtbr) and display
the latest cartoon.  Copy the wtbr and wtbr_display commands in 
your ~/bin or equivalent directory and verify that the directory is 
in your search path.

When reading alt.comics.buffalo-roam postings that have Hans' cartoons, 
type:

	| wtbr

at the 'End of article' prompt to save the gif image of the cartoon
in your ~/wtbr directory.  

To display the latest WTBR cartoon, use the wtbr_display command.  
If you give wtbr_display the -r flag, the cartoon will be displayed
on the root window (the background screen).  Note that wtbr_display
will only work if you're running X Windows and you have the xloadimage
command on your machine.  If you run X Windows, you might consider
added the following line to your .login file:

	wtbr_display -r

This will display the latest WTBR cartoon on your root window each
time that you login.

-Darren

P.S. To get these programs, save this article, cut at the dotted line,
     and follow the instructions on the shell archive.

------8<- Cut Here -8<------8<- Cut Here -8<------8<- Cut Here -8<-----
#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	README.wtbr
#	wtbr
#	wtbr_display
# This archive created: Tue Apr 14 16:14:04 1992
export PATH; PATH=/bin:$PATH
echo shar: extracting "'README.wtbr'" '(968 characters)'
if test -f 'README.wtbr'
then
	echo shar: will not over-write existing file "'README.wtbr'"
else
sed 's/^	X//' << \SHAR_EOF > 'README.wtbr'
	XThese programs allow you to save the posted WTBR (Where the Buffalo
	XRoam) gif images under your home directory (~/wtbr) and display
	Xthe latest cartoon.  Copy the wtbr and wtbr_display commands in 
	Xyour ~/bin or equivalent directory and verify that the directory is 
	Xin your search path.
	X
	XWhen reading alt.comics.buffalo-roam postings that have Hans' cartoons,
	Xtype:
	X
	X	| wtbr
	X
	Xat the 'End of article' prompt to save the gif image of the cartoon
	Xin your ~/wtbr directory.  
	X
	XTo display the latest WTBR cartoon, use the wtbr_display command.  
	XIf you give wtbr_display the -r flag, the cartoon will be displayed
	Xon the root window (the background screen).  Note that wtbr_display
	Xwill only work if you're running X Windows and you have the xloadimage
	Xcommand on your machine.  If you run X Windows, you might consider
	Xadded the following line to your .login file:
	X
	X	wtbr_display -r
	X
	XThis will display the latest WTBR cartoon on your root window each
	Xtime that you login.
SHAR_EOF
if test 968 -ne "`wc -c < 'README.wtbr'`"
then
	echo shar: error transmitting "'README.wtbr'" '(should have been 968 characters)'
fi
fi # end of overwriting check
echo shar: extracting "'wtbr'" '(235 characters)'
if test -f 'wtbr'
then
	echo shar: will not over-write existing file "'wtbr'"
else
sed 's/^	X//' << \SHAR_EOF > 'wtbr'
	X#!/bin/csh
	X#
	X#       wtbr - uudecodes WTBR news articles and places the GIF image of
	X#              the cartoon in your WTBR library directory (~/wtbr).
	X#
	Xif (! -d $HOME/wtbr) then
	X        mkdir $HOME/wtbr
	Xendif
	Xcd $HOME/wtbr
	Xuudecode
SHAR_EOF
if test 235 -ne "`wc -c < 'wtbr'`"
then
	echo shar: error transmitting "'wtbr'" '(should have been 235 characters)'
fi
chmod +x 'wtbr'
fi # end of overwriting check
echo shar: extracting "'wtbr_display'" '(628 characters)'
if test -f 'wtbr_display'
then
	echo shar: will not over-write existing file "'wtbr_display'"
else
sed 's/^	X//' << \SHAR_EOF > 'wtbr_display'
	X#!/bin/csh
	X#
	X#       wtbr_display - display latest WTBR cartoon using xloadimage
	X#
	X#       Usage: wtbr_display     # for normal xloadimage window
	X#              wtbr_display -r  # to display on the root window
	X#
	Xset wtbr_lib = $HOME/wtbr
	Xif (! -d $wtbr_lib) then
	X        echo "You don't have any WTBR cartoons."
	X        exit 1
	Xendif
	X
	Xcd $wtbr_lib
	Xset latest_cartoon = `ls -t *.gif | head -1`
	X
	Xif (! -f $latest_cartoon) then
	X        echo "You don't have any WTBR cartoons."
	X        exit 1
	Xendif
	X
	Xif ("$1" == "-r") then
	X        xloadimage -onroot -fullscreen $latest_cartoon 
	Xelse
	X        xloadimage $latest_cartoon 
	Xendif
	Xexit 0
SHAR_EOF
if test 628 -ne "`wc -c < 'wtbr_display'`"
then
	echo shar: error transmitting "'wtbr_display'" '(should have been 628 characters)'
fi
chmod +x 'wtbr_display'
fi # end of overwriting check
#	End of shell archive
exit 0