info-mac@uw-beaver (10/04/85)
From: Moderator Richard M. Alderson <INFO-MAC-REQUEST@SUMEX-AIM.arpa> INFO-MAC Digest Friday, 4 Oct 1985 Volume 3 : Issue 46 Today's Topics: More information about writing printer servers MAC <-> GPIB interface .. query [question] Menu Clock and Hyperdrive 20 List of applications for AppleTalk ? Deluxe Music Construction Set [query] MacTerm Keycap mods? Cryptography [query] Kermit for the Mac Kermit Docs ---------------------------------------------------------------------- Date: 29 Sep 1985 12:40-EST From: mss%dartvax%dartmouth.csnet@CSNET-RELAY.ARPA Subject: More information about writing printer servers In response to my request for printer driver info, I received the following from leo@Apple. Would you please place it into the printer driver informa- tion file you created? (I checked with leo and he said it was OK--he didn't send it out to the info-mac because he thought that most people would not be interested.) -Mark From leo@APPLE Mon Sep 23 20:31:51 1985 Date: Wed, 18 Sep 85 01:19:13 pdt From: Leo Hourvitz <leo@APPLE> Posted-Date: Wed, 18 Sep 85 01:19:13 pdt To: mss%dartvax%dartmouth.csnet@CSNET-RELAY Subject: Printer Support for the Rest of Us Mark; Here's a quick description of the Mac's Printing Architecture (and I DO use the word architecture somewhat loosely). There are two ways to print, known as the high-level and low-level printing interfaces. In the high-level printing interface, the program calls all those printing routines defined in Inside Mac, like PrOpen, PrOpenDoc, PrOpenPage, and so forth, and gets back a printing GrafPort. The program then calls QuickDraw routines to draw into this GrafPort, but instead of being drawn in some BitMap somewhere, the drawings come out on the printer. If a program is using the low-level interface, then instead of making the calls to PrOpenDoc, it makes control calls on the .Print driver (driver refNum -3). These calls have a csCode parameters that gives the type of control call being made, which are the types of calls you mentioned: Here's a BitMap, here's a stream of text, etc. A single program never uses both levels of the interface. The sampling of real programs is that MacPaint uses the low-level interface, and everybody else uses the high-level interface. When people refer to the ImageWriter driver, they're usually referring to the ImageWriter resource file, which actually contains two pieces of code, corresponding to the two levels of interface: one is a driver, as per the device manager, that supports the low-level interface. The other thing in the printer resource file is a series of PDEF resources (fairly undocumen- ted) that contain the code to implement the high-level interfaces. The way that the high-level interface is implemented is by installing a new set of procedures in QuickDraw's StdProcs (in QuickDraw manual, pg. 70) that get called whenever the application draws into the printing grafPort. The low-level interface provided by the driver is pretty much as straight- forward as you mentioned. It gets a few more control calls then just BitMap, chars, and carriage return; there are also control calls for OpenDoc, OpenPage, etc.; but basically, the low-level one is simple. The only people who have written real-live Printer Drivers, as far as I know, are 1) Apple, 2) Aldus, and 3) Orange Micro is trying. There may be some others... Macintosh Tech Support, I believe, has a Tech Note with more details on writing a printer driver, but I don't know how you'd go about getting it from them (though their number is 408 973 3400)(if you have any other connection, try it). Unfortunately, having looked at the task before (and with the advantage of having access to the source of the ImageWriter driver), writing a real printer file is a heavy-duty task; not impossible, but not a two-weekender. I think just doing the low-level interface, giving you MacPaint at least, wouldn't be too bad... Good luck! Leovitch Leo Hourvitz Apple Computer, Inc. leo@apple.csnet [This entire message has been archived as [SUMEX]<INFO-MAC>PRINTER-DRIVERS.INFO. --RMA] ------------------------------ Date: Thu, 3 Oct 85 14:57:50 mdt From: hsc%a@LANL.ARPA (Scott Chesney) Subject: MAC <-> GPIB interface .. query Reply-to: hsc@a.UUCP (Scott Chesney) Is there an available Macintosh GPIB controller? It would be nice to be able to do instrument control with a Mac as opposed to the more expensive H-P or Tektronix systems. Thanks in advance, Scott (the sorcerer's apprentice) Chesney ihnp4!lanl!hsc.UUCP hsc@lanl.ARPA ------------------------------ Date: Wed, 2 Oct 85 11:46:47 edt From: jtkohl@ATHENA.MIT.EDU (John T. Kohl) Subject: [question] Menu Clock and Hyperdrive 20 Reply-to: jtkohl@ATHENA.MIT.EDU I am having trouble using the MenuClock posted here recently with my Hyperdrive 20. I can use the MenuClock if I boot off floppy as a normal 512k mac, but it will not work when I use the Hyperdrive system files (it crashes with a fuzzy screen). It will work, however, on a Hyperdrive 10 which is several months old. Has anyone else had this problem/come up with a fix? John T. Kohl UUCP: ...!mit-eddie!mit-athena!jtkohl ARPA: jtkohl@ATHENA.MIT.EDU ------------------------------ Subject: List of applications for AppleTalk ? Date: 02 Oct 85 09:32:49 EDT (Wed) From: Gurudatta Parulkar <parulkar@dewey.udel.EDU> We have been using Appletalk for the last three months, but have not come across too many applications to run on this network. In fact, we use it only for sharing the LaserWriter. So I would like to know the list of applications that other people are using on AppleTalk. Thanks in advance. -guru PS: Some examples of Applications that I have in mind are say mail, file transfer etc. Gurudatta M. Parulkar University of Delaware Department of Computer and Information Sciences Newark, DE 19716 ARPA: parulkar@udel-dewey CSNET: parulkar%udel-dewey@csnet-relay UUCP: ...!harvard!parulkar@udel-dewey ------------------------------ From: kangaro!milo@Purdue.EDU Subject: Deluxe Music Construction Set [query] Date: Sun Sep 29 09:49:08 1985 Has anyone out there seen a copy of the Deluxe music construction set for the Macintosh yet? I understand they have a MIDI option now that lets you play music through a MIDI equipped synthizer. This is a great feature but a musician friend of mine wants to know if you can RECORD music comming in through a MIDI and then edit it and play it back or print it. Basically he wants to play a piece of music on his synthizer, record it with a music program and then be able to edit, print or replay it. The add for Deluxe MCS says you can play back music through the MIDI port but it does not say if you can record. Does anyone know for sure? Please reply directly...I don't get info-mac regularly Greg Corson {ihnp4 | ucbvax}!pur-ee!kangaro!milo ARPA: kangaro!milo@ecn@purdue.ARPA or kangaro!milo@ee.Purdue.EDU Or leave a message to the sysop on The Connection (219) 277-5825 ------------------------------ Date: Sat, 28 Sep 85 01:43:59 pdt From: saj@ACC-SB-UNIX.ARPA (Steve Johnson) Subject: MacTerm Keycap mods? Has anyone tried to modify the macterm keycaps? I have the doc but in my infinite laziness I wondered if anyone else got there first. I need VT-100 arrow keys. I thought I'd put them on command-6 to 9 plus cmd-0 for 'home'. But if anyone else has gotten there first could we trade resources maybe? Also, the system I use at school here is a Prime 9955 (the machine I need arrow keys for). I want to up-and-download files. People, I DON'T want to rewrite mac-put-and-get in FORTRAN IV!!!! Has anyone else heard of any system software for mac-Prime usage? Lets see, DO, CONTINUE, FORMAT, LET, GOTO. Here we go!!!!!!! Thanks for all. Andy Stadler c/o SAJ@ACC Occidental College ------------------------------ From: kangaro!milo@Purdue.EDU Subject: Cryptography [query] Date: Tue Oct 1 20:04:11 1985 I am in the process of writing a cryptography program for the Macintosh that encrypts and decrypts Mac files and applications. I considered using the Data Encryption Standard but I discovered that this standard, implimented in software, will probably be too slow to be useful (the Hippo C DES encryptor takes 120 seconds to encrypt a 12k file). Obviously, if the encryptor runs too slow people won't bother using it so I had to come up with a different means of encrypting the file that was faster. I have settled on using a software implimentation of a "rotor" machine such as an enigma or ECM because a software version of one of these machines is very fast. I am looking for someone who is "into" cryptography who could give me some idea of how secure the method I am using is. I basically want to make sure that I haven't overlooked any simple way a smart person could use to crack the code. If you can help me figure out how secure my algorithim is, please contact me. I should mention that I have researched this problem fairly throughly...so if you are not somewhat experinced in cryptography you probably won't be able to help much. Greg Corson {ihnp4 | ucbvax}!pur-ee!kangaro!milo ARPA: kangaro!milo@ee.purdue.EDU or kangaro!milo@ecn@Purdue.ARPA P.S. If anyone knows of any software company that might want to sell this kind of product, please let me know. I am looking for a publisher. ------------------------------ Date: Wed, 2 Oct 85 7:32:26 EDT From: Robert E. Yellen (IMD-SEAD) <ryellen@Ardc.ARPA> Subject: Kermit for the Mac Here's a later version of Kermit for the Mac from Columbia. It is version 0.8(33). ENJOY ! [This replaces the older [SUMEX]<INFO-MAC>CKMKER.HQX. --RMA] ------------------------------ Date: Wed, 2 Oct 85 7:36:03 EDT From: Robert E. Yellen (IMD-SEAD) <ryellen@Ardc.ARPA> Subject: Kermit Docs Here is the documentation that goes with MacKermit version 0.8(33). Run it through BinHex 4.0 and then use PackIt to unpack. It contains five MacWrite Documents: Read Me Beware History IBM (yuck) Mainframe settings Normal Settings ENJOY [The documentation has been placed in [SUMEX]<INFO-MAC>CKMKER.DQC. --RMA] ------------------------------ End of INFO-MAC Digest **********************