Path: utzoo!attcan!uunet!lll-winken!ames!amdahl!pccuts!acs From: acs@pccuts.pcc.amdahl.com (Tony Sumrall) Newsgroups: comp.sys.amiga Subject: Re: Atalk III 1.0e (actually VT100 auto-chop) Message-ID: <740@pccuts.pcc.amdahl.com> Date: 17 Jan 89 08:17:10 GMT References: <242@lakesys.UUCP> <00063@meph.UUCP> <14652@oberon.USC.EDU> <293@lakesys.UUCP> Reply-To: acs@pccuts.pcc.amdahl.com (Tony Sumrall) Organization: Amdahl Corporation, Sunnyvale CA Lines: 23 In article <293@lakesys.UUCP> mikes@lakesys.UUCP (Mike Shawaluk) writes: > ... I don't recall the exact technique that >Vt100 uses for auto-chopping, but maybe Tony S. can share it with us? VT100 chops all preceding occurrences of the last character in the last packet if the last character is ^Z or 0x00; it chops until it encounters a character that isn't the same as the last char. I.e. if((firstchar = bufr[--bufptr]) == 0 || firstchar == 0x1A) while (bufptr && bufr[--bufptr] == firstchar) ; bufptr++; write(fd, bufr, bufptr); I'll try to remember to make auto-chop an option in the 2.9 version. > - Mike Shawaluk > ...!uunet!marque!lakesys!mikes -- Tony Sumrall acs@pccuts.pcc.amdahl.com <=> amdahl!pccuts!acs [ Opinions expressed herein are the author's and should not be construed to reflect the views of Amdahl Corp. ]