Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!ames!ucbcad!ucbvax!decvax!decwrl!cgou01.dec.com!drew From: drew@cgou01.dec.com (Steve Drew) Newsgroups: comp.sys.amiga Subject: Aux: Handler (Part 1 of 2 doc/executable) Message-ID: <9775@decwrl.DEC.COM> Date: Fri, 8-May-87 13:14:09 EDT Article-I.D.: decwrl.9775 Posted: Fri May 8 13:14:09 1987 Date-Received: Sat, 9-May-87 20:39:58 EDT Sender: daemon@decwrl.DEC.COM Organization: Digital Equipment Corporation Lines: 260 Here's my first attempt at a dos handler. Please read the docs!! I wrote in support for ACTION_SCREEN_MODE originally thinking that my commandline editing under shell would work ok through AUX: to a vt100 style terminal. But alas some of the escape sequences I used under shell (for inserting / deleting char's) were Amiga specific and not ansi sequences. So as a quick alternative I added a switch to shell to turn of CLE for use over AUX:. But with the capability of RAW mode you could write/modify a ansi style screen editor that would also work through aux-handler to a ansi style terminal. Any volunteers? Following the dos's and executable are the sources. < I code because I enjoy getting frustrated!! > Please email me any bugs found to: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Steve Drew at ENET: CGFSV1::DREW ARPA: drew%cfgsv1.dec.com@decwrl.dec.com USENET: {decvax!decwrl}!cgfsv1.dec.com!drew %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% # This is a shell archive. # Remove everything above and including the cut line. # Then run the rest of the file through sh. #----cut here-----cut here-----cut here-----cut here----# #!/bin/sh # shar: Shell Archiver # Run the following text with /bin/sh to create: # aux.doc # mountlist # aux-handler.uue # This archive created: Fri May 8 09:53:32 1987 echo shar: extracting aux.doc cat << \SHAR_EOF > aux.doc Aux-Handler V1.0 (c) Steve Drew 1987 ---------------- I. Desciption: - Installs as a dos handler to control the serial port as a console. - Support all relevent dos packets including WaitForChar and ACTION_SCREEN_MODE. - To your process it looks just like a CON: handler, screening control chars doing CRLF translations and handling deletes ect... - Can be made into a RAW console via ACTION_SCREEN_MODE, it then acts like a RAW console which does not echo characters or handle control chars, but just passes all keys entered back to the process. This would allow you to implement a ANSI style screen editor like maybe MicroEMACS 3.x to work through AUX:. Now thats a multiuser system! II. Installation: 1. Insert the included MOUNTLIST file into you DEVS:MOUNTLST 2. Copy the Aux-Handler to the l: directory 3. Enter Mount AUX: to load the driver. III Using - 'NEWCLI AUX:' will start a cli on the Serial port. - both delete last char typed. - ^X or ^U delete entire line. - ^S / ^Q stop/start screen display (if XON/XOFF selected under prefs.) IV Notes: - Setups': The Aux-Handler opens the serial port with its current settings (as set up in preferences). However you may specify if you want ECHO, CRLF, or RAW Mode on/off via specifiying keyword 'Set': Newcli AUX:Set/E:[On/Off]/C:[On/Off]/R:[On/Off] for example to set Raw off, Echo off and CRLF on. Newcli AUX:Set/e:off/c:on/r:off Case is insensitive. The default if any parameters not specified is: Echo ON, Raw Off, CRLF ON. - Killing A CLI: Normally you just do a ENDCLI. However if you had some one in over a modem or fired it up by mistake you can force an ENDCLI command to be sent to the process by doing a 'ECHO >AUX:ENDCLI' from another CLI. SHAR_EOF if test 1913 -ne "`wc -c aux.doc`" then echo shar: error transmitting aux.doc '(should have been 1913 characters)' fi echo shar: extracting mountlist cat << \SHAR_EOF > mountlist /* Installs Aux-Handler V 1.0 (C) Steve Drew */ AUX: Handler = L:Aux-Handler Stacksize = 4000 Priority = 5 GlobVec = 1 # SHAR_EOF if test 162 -ne "`wc -c mountlist`" then echo shar: error transmitting mountlist '(should have been 162 characters)' fi echo shar: extracting aux-handler.uue cat << \SHAR_EOF > aux-handler.uue begin 777 aux-handler M #\P # ( 2< 0 !@ /I $G$[Z#K!. M50 (&T ""\H ! B;0 (+RD #"\M PO+0 (80A/[P 03EU.=4Y5__@@;0 ( M(6T $ ,(&T ""%M !0 $"!M @K: $__@@;0 (*U#__"!M @@+0 ,T+P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M__P,$0 O9NH@;?_\2A!F!$*M__ @;?_\0A @ M+?_X5( K0 ((&W__+'M AC ""(&W_^! 02(!(P& D*WP !__1@,"M\ M O_T8"8K? 3_]& <0JW_]& 6D+P !#9]Y5@&?0D+P -9]Q@ MY"!M @,$ !/9C @;0 (#"@ 3@ !9@P@+?_T@;D B8!@@;0 (#"@ 1@ ! M9@P@+?_T1H#!N0 ")2K?_\8 #_+& _QI!55@Z4T54+P 3E4 "!Y M"B%\ 0 D('D *,7P @ <0?D ((GD *(T@ *"\Y "DZY M 2(%A/3EU.=4Y5__A"K?_X2KD J9PH(.0 " )68*2KD F9P ! M? @Y 0 E9UX(N0 $ )2!M PA?/____\ #"\Y $DZY /HEA/ M+SD 23KD !).6$\@>0 !9P ! H ]R >&A+P%.N0 $D!83R\M ! O M+0 ,3KD $4$]@ $4"#D P "5G $("+D P "4(.0 " )6<( M0KD F8 93N0 "9*N0 "IG>BM\ ?_X(&T #"MH !C__& $4JW_ M^"!M C1[?_X(FW__-/M__@3:/____\,* *__]F"@@Y ( E9QHL;0 , M("W_^+"N !QL#"(M__BRN0 "IMNB!M__S1[?_X#"@ "O__9Q (.0 " M)68&4KD F("W_^)&Y *B\Y *B\M @@;0 (T>W_^"\(3KD \X M3^\ # RY _0 "IL%@@Y 4 E9PP(N0 % )4ZZ_CX@;0 ,(6W_ M^ ,+RT $"\M Q.N0 103TY=3G5.5?_^+SD *3KD !).6$\;>0 M C__PPM /__V8>0BW__TJY &F<22'@0 "\Y &DZY 2+E!/"#D M @ "5F $4$"W__TB 2,!@ #40BW__TJY &F<22'@@ "\Y &DZY M 2+E!/8 YG &T#__TB 2, CP "I2N0 "9@ #,"#D 0 "5G M!AM\ K__V +@(.0 ! )6<$0BW__V *9*N0 "IG)B!M C1^0 M "H,* *__]G%%.Y *DAX -(>@$J3KH!+E!/0BW__V!P2KD J9R@@ M;0 (T?D J#"@ "O__9Q93N0 "I(> #2'H ^DZZ /I03V#00BW__V Z M0BW__V T68!G /\J68!GAE6 9P#_<%> 9P#_5E& 9ZI7@&>F5X!GV%. 9P#_ M*I"\ 8V< _V!@R@@Y E9RP(.0 ! )6<2#"T "O__9@I(> - M3KH Z%A/$"W__TB 2, O $ZZ -A83PPM K__V8&4KD F#+D #^ M*FTX"/D !0 "5*N0 "9F)@@Y ( E9AQ2N0 "8@.0 "I2N0 M "H@;0 ($;P "@@ 8 1.NOPV2BW__V<6(#D J4KD J(&T "!&M__\( M $Y=3G4(( @ "" ( $Y5__I"K?_\0JW__& Z("W__"!M @;< @ __L,+0 * M__MF$@@Y $ E9PA(> -82)83Q M__M(@$C +P!A%%A/4JW__" M__RP MK0 ,;;Q.74YU3E4 $HM MG*B!Y #B%\ 0 D0>T "R)Y #B-( M "@O.0 Y.N0 $7)83TY=3G5.5?_T(_P # (DAY $ 4AX %). MN0 $5Q03R/ "F8&< !.74YU2'D 0 !2'@ 4DZY 17%!/(\ . M9A9(> !2+SD *3KD !&>4$]P &#,0J="ITZY /S%!/('D *(4 M#D*G+SD *0J=(>@$P3KD !'J3^\ $$J 9SP@>0 HO* .3KD !!D M6$](> !2+SD .3KD !&>4$](> !2+SD *3KD !&>4$]P & _V K M>0 K_^"MY #O_\0JW_]& 6(&W_^%*M__@B;?_\4JW__!*04JW_] RM M 4O_T9>!"IT*G3KD _,4$\@>0 XA0 .('D .,7P P <0J=" MITZY /S%!/(\ 69V)(> H+SD 63KD !#04$\CP !)G2$*G M+SD 22'@ 4AZ %Y.N0 $>I/[P 02H!F*B!Y $C%\ D '"!Y M$D(H !X@>0 !)"* ?3KKY[' !8 #^DB!Y $D*H !1.N@"J82)P & M_GQS97)I86PN9&5V:6-E '1I;65R+F1E=FEC90 3E4 @Y 4 E9APO M.0 I.N0 #Z)83R\Y "DZY 23EA/('D .+R@ #DZY 09%A/ M2'@ 4B\Y #DZY 1GE!/+SD *3KD ^^6$\@>0 HO* .3KD M !!D6$](> !2+SD *3KD !&>4$].74YU3E4 $JY $F H+SD 23KD !$:4$]*N0 !9G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> #QP _: M 0 $! ! X 03 $%H !!Z 0F $*8 !#T 15 $5X M !&, 1H $<8 !)> E ( %0 !5@ 5P %B !A@ M 9P &\ !T@ >( ( "&@ I( .& #P !! 0V $ M= !-( 38 $Y@ !/( 4D %+ !38 4^ %@ !8P . 'J ![( >Z 'Q@ !] M ?B '\ !_X @N (.@ "$( A* (4@ "%@ B8 (L@ M",P C4 (W@ ".0 D& )$ "1H E& )5 "6@ ET ) MA "9X FJ )Q@ "

-: #7P VT -O #