Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcupt1!hprnd!hprpcd!!stan From: stan@hprpcd.HP.COM (Stan Witherspoon) Newsgroups: comp.sys.handhelds Subject: Re: Portfolio serial comms Message-ID: <18110002@hprpcd.HP.COM> Date: 2 Aug 90 20:34:53 GMT References: <871@iceman.jcu.oz> Organization: HP, Systems Technology Div., Roseville, Ca. Lines: 179 For all Portfolio users, Here is a shell archive of Xterm2, a small terminal emulator that supports Xmodem for the Portfolio. I have received several requests for it, and since it is so small, I figured I would post it. Enjoy. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Stan Witherspoon ~ Disclaimer ~ ~ Systems Technology Division ~~~~~~~~~~~~~~~~~~~~~~~~ ~ Hewlett Packard Company ~ These are my ~ ~ 8010 Foothills Blvd. ~ personal opinions ~ ~ Roseville Ca. 95678 ~ and do not represent ~ ~ Phone: (916) 785-5071 ~ the views of anyone ~ ~ RF: N6SCE ~ or anything else ~ ~ Email: ucbvax!hplabs!hprpcd!stan ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # This is a shell archive. Remove anything before this line, # then unpack it by saving it in a file and typing "sh file". # # Wrapped by Stan Witherspoon on Mon Jul 16 15:41:00 1990 # # This archive contains: # xterm2.com # # Modification/access file times will be preserved. # User/group owner information will be preserved. # Error checking via wc(1) will be performed. # Error checking via sum(1) will be performed. LANG=""; export LANG PATH=/bin:/usr/bin:$PATH; export PATH if sum -r /dev/null 2>&1 then sumopt='-r' else sumopt='' fi rm -f /tmp/uud$$ (echo "begin 777 /tmp/uud$$\n \nend" | uudecode) >/dev/null 2>&1 if [ -f /tmp/uud$$ ] then rm -f /tmp/uud$$ unpacker=uudecode else echo Compiling unpacker for non-ascii files pwd=`pwd`; cd /tmp cat >unpack$$.c <<-'EOF' #include #define DEC(c) (((c) - ' ') & 077) main() { int n; char dest[128], a,b,c,d; scanf("begin %o ", &n); gets(dest); if (freopen(dest, "w", stdout) == NULL) { perror(dest); exit(1); } while ((n=getchar()) != EOF && (n=DEC(n))!=0) { while (n>0) { a = DEC(getchar()); b = DEC(getchar()); c = DEC(getchar()); d = DEC(getchar()); if (n-- > 0) putchar(a << 2 | b >> 4); if (n-- > 0) putchar(b << 4 | c >> 2); if (n-- > 0) putchar(c << 6 | d); } n=getchar(); } exit(0); } EOF cc -o unpack$$ unpack$$.c rm unpack$$.c cd $pwd unpacker=/tmp/unpack$$ fi echo x - xterm2.com '[non-ascii]' $unpacker <<'@eof' begin 644 xterm2.com MM$J[8 ZY! #3Z\TAC* T ,T6"L!T$( ^EP( = A0BM"T LTA6,. _#MT1H#\ M/'0H@/P]="B _$1T2(#\5'0M@/Q5=!Z _%9T'H#\7GRW@/QG?[+HI03KK>@O M NNHZ",#ZZ/H5 3KGNBW!.N9Z T%ZY3HF@"+'AT+"]MT!+0^S2'-(/86EP+I M?/\ 4E=0BSZY [H% /7[*@@=/M8N@ ]?N7UK#4%925S/ 'H[8BSX !!^) M/KD#Z"L Z!8&Z+@ N P Z&8 N@0 ]>P ^[H" "+U^Q?6EY8P[H! "X#%KD# ML 'NP[H! "X#%KD#L #NPU!25[H "X#%KD#["Z+/D4*+H@%+O\&10I?6EC/ M4%-2Z-'_'HX>O0.+%KL#N PES2$?L$CH! !:6UC#4%-14E"Q _[!@/D+=!VX M 1R*^L=D+$#_L& ^0MT#K@!'(KYS6&# M^@!U[>O96+I_@.Y:65M8PU"Q!=+H= B*R+4&T^GK [D7!(L6N0.#P@.P@.Z+ M%KD#BL'N0HK%[E@D'XL6N0.#P@/NPP %!345*!/D4*10EU!5I96UC# MH$4))'^B10F+'AT+"]MT(;1 ND4)N0$ S2%S%;0^BQX="\TAM FZ20O-(<<& M'0L .@S!(K0M +-(>NW4%-14E>[@ "T (H' ]A#Q@< NX / !T64/H80" M/RUU4$.*!Z(C"T/H4@"_RPJ*!X@%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