home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / astrolog / 2445 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  2.9 KB

  1. Path: sparky!uunet!cs.utexas.edu!usc!nic.csu.net!opus!vpopesc
  2. Newsgroups: alt.astrology
  3. Subject: Displaying Astrolog Output on Tek - NOT a question!
  4. Message-ID: <1992Nov23.062359.3307@nic.csu.net>
  5. From: vpopesc@opus.uucp (Valentin Popescu)
  6. Date: 23 Nov 92 06:23:59 PST
  7. Distribution: world
  8. Organization: California State University, Lost Angels
  9. Nntp-Posting-Host: opus.calstatela.edu
  10. Lines: 70
  11.  
  12. Hello,
  13.  
  14. Here's a file I wrote a while ago explaining how to display the
  15. graphical output from Astrolog on a Tektronics-capable terminal.
  16. My output is quite good, comparable to the X bitmap mode (I compared
  17. it to the output on OpenWindows 3.0), but your results may vary. I am
  18. using VLT, a Commodore Amiga terminal.
  19.  
  20. I thought I'd post it, maybe some people may find it useful. You will
  21. need the PBM package. Read the file for more.
  22.  
  23. ---
  24.  
  25. The folowing example illustrates how to display Astrolog output
  26. on unsupported graphical terminals. I use it for example, to display a
  27. chart on a Tek41xx compatible terminal. As illustrated here, it will
  28. work on 41xx and 40xx terminals.
  29.  
  30. My Tek settings are:     Tek Emulation: 4105/4107 Incremental Mode Step: 4096
  31. I am using VLT Version 5.517, by Willy Langeveld, SLAC, on a 1Mb Amiga 500,
  32. but it shoudl work on any terminal programs that support tek. 
  33.  
  34. Additionally, you will need the PBMPlus package. If you don't already
  35. have it compiled on your machine, you can obtain it via anonymous FTP
  36. from various places. It is a big archive, but take heart, after
  37. compiling you will only need two binaries: xbmtopbm and pbmtoplot. You
  38. can delete the rest if you are pressed for space. 
  39.  
  40. What follows is a csh shell script that automates all the processing.
  41. Extract it from here, save it, name it what you want (i.e. astrotek :),
  42. do "chmod 700 [name]", where the [name] is what you named it, and you
  43. are ready to roll, assuming you put xbmtopbm, pbmtoplot, and astrolog
  44. in your search path. Input is a data file as produced by the -o option
  45. in astrolog.
  46.  
  47. Note that to display on other graphical terminals, all you have to do
  48. is change the 'plot -Ttek' to something else, e.g 'plot -Tvt125'. Of
  49. course, depending on your terminal capabilities, that may or may not
  50. look good. On tektronics, it looks like the Xwindows display, but it
  51. takes a while to transfer all the data at 2400 baud! The faster your
  52. connection, the better.
  53.  
  54. #The line that follows must be the VERY first line in the script. Delete me.
  55. #!/bin/csh -f
  56.  
  57. onintr cleanexit
  58.  
  59.  
  60. if ($1 == "") then
  61.     echo Usage: `basename $0` \<input file\>
  62.     exit 1
  63. endif
  64.  
  65.  
  66. astrolog -i $1 -Xo output.$$ -Xr -Xb
  67.  
  68. xbmtopbm output.$$ | pbmtoplot | plot -Ttek
  69.  
  70.  
  71. cleanexit:
  72.     rm -f output.$$
  73.     exit 0
  74.  
  75. #end of script. Cut everything after me (including me, if you wish).
  76.  
  77. -- 
  78.                |  
  79. ____________  -+-__      ____________ 
  80. \_____     /   |/_ \     \     _____/           Valentin Popescu
  81.  \_____    \_____/  \____/     ____/   vpopesc@{calstatela.edu,csula.bitnet}
  82.