home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!usc!nic.csu.net!opus!vpopesc
- Newsgroups: alt.astrology
- Subject: Displaying Astrolog Output on Tek - NOT a question!
- Message-ID: <1992Nov23.062359.3307@nic.csu.net>
- From: vpopesc@opus.uucp (Valentin Popescu)
- Date: 23 Nov 92 06:23:59 PST
- Distribution: world
- Organization: California State University, Lost Angels
- Nntp-Posting-Host: opus.calstatela.edu
- Lines: 70
-
- Hello,
-
- Here's a file I wrote a while ago explaining how to display the
- graphical output from Astrolog on a Tektronics-capable terminal.
- My output is quite good, comparable to the X bitmap mode (I compared
- it to the output on OpenWindows 3.0), but your results may vary. I am
- using VLT, a Commodore Amiga terminal.
-
- I thought I'd post it, maybe some people may find it useful. You will
- need the PBM package. Read the file for more.
-
- ---
-
- The folowing example illustrates how to display Astrolog output
- on unsupported graphical terminals. I use it for example, to display a
- chart on a Tek41xx compatible terminal. As illustrated here, it will
- work on 41xx and 40xx terminals.
-
- My Tek settings are: Tek Emulation: 4105/4107 Incremental Mode Step: 4096
- I am using VLT Version 5.517, by Willy Langeveld, SLAC, on a 1Mb Amiga 500,
- but it shoudl work on any terminal programs that support tek.
-
- Additionally, you will need the PBMPlus package. If you don't already
- have it compiled on your machine, you can obtain it via anonymous FTP
- from various places. It is a big archive, but take heart, after
- compiling you will only need two binaries: xbmtopbm and pbmtoplot. You
- can delete the rest if you are pressed for space.
-
- What follows is a csh shell script that automates all the processing.
- Extract it from here, save it, name it what you want (i.e. astrotek :),
- do "chmod 700 [name]", where the [name] is what you named it, and you
- are ready to roll, assuming you put xbmtopbm, pbmtoplot, and astrolog
- in your search path. Input is a data file as produced by the -o option
- in astrolog.
-
- Note that to display on other graphical terminals, all you have to do
- is change the 'plot -Ttek' to something else, e.g 'plot -Tvt125'. Of
- course, depending on your terminal capabilities, that may or may not
- look good. On tektronics, it looks like the Xwindows display, but it
- takes a while to transfer all the data at 2400 baud! The faster your
- connection, the better.
-
- #The line that follows must be the VERY first line in the script. Delete me.
- #!/bin/csh -f
-
- onintr cleanexit
-
-
- if ($1 == "") then
- echo Usage: `basename $0` \<input file\>
- exit 1
- endif
-
-
- astrolog -i $1 -Xo output.$$ -Xr -Xb
-
- xbmtopbm output.$$ | pbmtoplot | plot -Ttek
-
-
- cleanexit:
- rm -f output.$$
- exit 0
-
- #end of script. Cut everything after me (including me, if you wish).
-
- --
- |
- ____________ -+-__ ____________
- \_____ / |/_ \ \ _____/ Valentin Popescu
- \_____ \_____/ \____/ ____/ vpopesc@{calstatela.edu,csula.bitnet}
-