Path: utzoo!attcan!utgpu!watmath!iuvax!bsu-cs!ibmbin From: cgs@umd5.umd.edu (Chris Sylvain) Newsgroups: comp.binaries.ibm.pc Subject: v01i106: sendcode, sends arbitrary characters to stdout Summary: sendcod1.arc, sends arbitrary characters to stdout Message-ID: <5639@bsu-cs.UUCP> Date: 11 Feb 89 02:01:04 GMT Sender: ibmbin@bsu-cs.UUCP Followup-To: comp.binaries.ibm.pc.d Organization: University of Maryland, College Park Lines: 105 Approved: dhesi@bsu-cs.UUCP Posting-number: Volume 01 Issue 106 Originally-from: cgs@umd5.umd.edu (Chris Sylvain) Submitted-by: cgs@umd5.umd.edu (Chris Sylvain) Archive-name: sendcode/sendcod1.uue This program takes ASCII bytes (in hex) from its command line and sends the bytes to STDOUT. Note all the DOS output redirections can be used with this program, and the program is case-insensitive. The redirections allow sending an arbitrary sequence of bytes (max. about 40 ASCIIhex bytes) to be sent, for instance, to the printer port to set a desired mode. EXAMPLE (with ANSI.SYS installed): SENDCODE 1b 5B 32 4a sends the sequence [2J to stdout, which clears the screen and leaves the cursor in the home position. Note 'b' == 'B'. [ Includes assembly source. Checksums obtained with the 4.3BSD "sum" or System V "sum -r" command. checksum size (bytes) file (between BEGIN--cut and END--cut lines) 16192 4179 this uuencoded posting checksum size (bytes) file 47688 3012 sendcod1.arc -- R.D. ] BEGIN--cut here--cut here begin 644 sendcod1.arc M&@A314Y$0T]$12Y!4TT`/@H``"(2N)!?\^L0```,.QHHV`'B"IHP=$#009-F M#@@X(B91.%8=9H!!%D MRI`D24"(R4-G)HHT;D"@*8,G!0@S$2VFH>-PS)LV;<*X(0."#=`R(Z52G5-F MJL.%973RG$GG#4DJ1)Y4H>("A),W/4&$8<-&X5`0::>`>%.'#IR^(.24(9-& M\!@Z:=ZXF3-RC%2=8>MPI7IG*1J[#1]&G%B1A=RI=L-"E$A1:=,P7%L`Y;IX M:1H[95R,I')7,&'#B!4[G,OFS1T0K`F[.?-9KAPQ2RG*R0.\3)PZ7<>$?6-& M;$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