Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!netserv2!deven From: deven@rpi.edu (Deven T. Corzine) Newsgroups: comp.sys.amiga.tech Subject: Re: Handlers (AUX: users should try ComMan 1.3's CNX:serial.device!) Message-ID: Date: 12 Apr 90 09:30:42 GMT References: <1990Apr11.151918.3110@cat.fulcrum.bt.co.uk> Organization: Rensselaer Polytechnic Institute, Troy, NY Lines: 70 In-Reply-To: sie@fulcrum.bt.co.uk's message of 11 Apr 90 15:19:18 GMT On 11 Apr 90 15:19:18 GMT, sie@fulcrum.bt.co.uk (Simon Raybould) said: Simon> I want to write a handler, similar to AUX:, but with some Simon> escape sequence mapping. [See below.] Simon> Where is there some documentation on handlers ?? There is some documentation on the packet system in the AmgiaDOS Technical Manual (Bantam Books) and a sample handler... in BCPL. (ugh.) This documentation is rather poor in that it doesn't tell you much of what you need to know to write a proper handler in C or assembly. Apparently the Software Distillery (Walker, et al) have some good example handler code that may be worth getting a hold of. (I've been intending to, but haven't gotten around to it... Doug, if you're reading this, could you Email me the info you guys have on handlers to deven@rpi.edu? Thanks...) You could also look at the NULL: source, which is okay, but doesn't DO much... Dillon's nfs-handler for DNet is another possible example, but Dillon's code tends to be written in a rather difficult-to-read fashion, so caution may be in order. That's all the sources that leap to mind. Simon> I have the RKM's so direction to the relevant sections would be Simon> enough. I had a quick look but couldn't see any info on this. The RKM's are absolutely essential reference materials, but unfortunately, they have virtually no information on AmigaDOS. Check the include files , and for what little extra information you can glean from the data structures defined and the comments accompanying them... [these should be in the includes section of the 1.3 Includes and Autodocs RKM, as well as on your compiler disks.] Simon> Of course, if I am missing the point totally and AUX: allows Simon> you to set up mappings then let me know. AUX: is pretty dumb, but I would advise anyone using AUX: to run a CLI on a terminal to get ConMan 1.3 by Bill Hawes, (Shareware product, widely available) and try its CNX: handler. It allows you to use a "console" over any exec device. Or at least, you can attempt to. (I wouldn't suggest trying to use CNX:trackdisk.device!) Anyway, if you use "CNX:serial.device", [as in the command "NewCLI CNX:serial.device"] you will get an effect similar to AUX:, except that you get ConMan's input editing as a bonus. For anyone not familiar with ConMan, the input editing is similar to that of C-A's NEWCON: handler, except that it is far more flexible and powerful than the C-A handler, and I think it may even be smaller. [or I could be thinking of ASH, the ARP shell, compared to AmigaShell -- ASH is smaller and much better...] ConMan 1.3 is well worth getting simply for the Amiga console enhancements, but if you're using AUX: now, it is doubly invaluable for CNX:... [by the way, the "serial.device" part of the CNX: "filename" is almost certainly case sensitive. That is, you can use "cnx:serial.device", but "CNX:SERIAL.DEVICE" is probably right out.] I don't know if CNX: does the sort of mapping you're looking for, but take a look at it first; it may. Deven -- Deven T. Corzine Internet: deven@rpi.edu, shadow@pawl.rpi.edu Snail: 2151 12th St. Apt. 4, Troy, NY 12180 Phone: (518) 274-0327 Bitnet: deven@rpitsmts, userfxb6@rpitsmts UUCP: uunet!rpi!deven Simple things should be simple and complex things should be possible.