Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!sri-unix!hplabs!tektronix!tekcrl!vice!tekfdi!videovax!stever From: stever@videovax.UUCP (Steven E. Rice, P.E.) Newsgroups: net.micro.amiga Subject: Updated Diffs for vt100 version 2.2 Message-ID: <2009@videovax.UUCP> Date: Mon, 20-Oct-86 15:06:58 EDT Article-I.D.: videovax.2009 Posted: Mon Oct 20 15:06:58 1986 Date-Received: Wed, 22-Oct-86 23:19:07 EDT References: <4625@decwrl.DEC.COM> <5980@decwrl.DEC.COM> <2003@videovax.UUCP> <2358@gitpyr.gatech.EDU> <6022@decwrl.DEC.COM> Reply-To: stever@videovax.UUCP (Steven E. Rice, P.E.) Organization: Tektronix, Comm Group, TV R&D Lines: 351 In article <2003@videovax.UUCP>, I posted a list of diffs for vt100 version 2.2. Since then, Dave Wecker has posted (in article <6022@decwrl.DEC.COM>) a revised list of corrections. Thanks, Dave, for keeping us up-to-date! I have kept a running list of changes and updates to Dave Wecker's vt100. The following diffs are for version 2.2. The diff to init.c corrects a problem pointed out by Dawn Banks in article <4625@decwrl.DEC.COM> (posted on August 4th). Lattice C is unable to cope with the construct [n+1]. To avoid problems, all occurrences of [n+1] are replaced by [nplus1], which is defined as an int and set equal to n+1 (surprise!). (This change should not cause any problems for the Manx compiler.) The diffs to kermit.c and script.c are taken from a very recent article by Dave Wecker (<5980@decwrl.DEC.COM>). These correct problems that he found. Dave also mentioned the need to remove a couple of lines from vt100.h, but this was apparently done by the mod.amiga.sources moderator. The newest corrections (from article <6022@decwrl.DEC.COM>) are to window.c. These correct the "if (class=RAWKEY)" statement (first pointed out by Danny Sharpe in article <2358@gitpyr.gatech.EDU>), and a bug in the wrap mode logic. Steve Rice ---------------------------------------------------------------------------- {decvax | hplabs | ihnp4 | uw-beaver}!tektronix!videovax!stever ============================================================================ *** init.c.orig Thu Oct 16 11:12:11 1986 --- init.c Fri Oct 17 18:25:03 1986 *************** *** 349,355 /*****************************************************************/ void InitFileItems() { ! int n; /* initialize each menu item and IntuiText with loop */ for( n=0; n= 0) || ebqflg) { /* 8-bit quoting... */ data[6] = MYEBQ; /* If parity or flag on, send &. */ if ((ebq > 0040 && ebq < 0100) || /* If flag off, then turn it on */ (ebq > 0140 && ebq < 0177) || /* if other side has asked us to */ --- 784,790 ----- data[3] = ctl(MYPCHAR); data[4] = tochar(MYEOL); data[5] = MYQUOTE; ! if ((p_parity > 0) || ebqflg) { /* 8-bit quoting... */ data[6] = MYEBQ; /* If parity or flag on, send &. */ if ((ebq > 0040 && ebq < 0100) || /* If flag off, then turn it on */ (ebq > 0140 && ebq < 0177) || /* if other side has asked us to */ *************** *** 811,817 if (data[6] == 0) return; ebq = data[6]; if ((ebq > 040 && ebq < 0100) || (ebq > 0140 && ebq < 0177)) ebqflg = 1; ! else if (((p_parity >= 0) || ebqflg) && (ebq == 'Y')) { ebqflg = 1; ebq = '&'; } --- 811,817 ----- if (data[6] == 0) return; ebq = data[6]; if ((ebq > 040 && ebq < 0100) || (ebq > 0140 && ebq < 0177)) ebqflg = 1; ! else if (((p_parity > 0) || ebqflg) && (ebq == 'Y')) { ebqflg = 1; ebq = '&'; } ============================================================================ *** script.c.orig Sat Oct 18 02:05:58 1986 --- script.c Sat Oct 18 02:09:32 1986 *************** *** 339,344 exit_script(); script_start(p); } } void cmd_ks(file) --- 339,345 ----- exit_script(); script_start(p); } + else exit_script(); } void cmd_ks(file) ============================================================================ *** window.c.orig Mon Oct 20 11:08:36 1986 --- window.c Mon Oct 20 11:11:22 1986 *************** *** 48,54 class = NewMessage->Class; code = NewMessage->Code; ReplyMsg( NewMessage ); ! if (class=RAWKEY) { c = toasc(code,1); name[i]=c; --- 48,54 ----- class = NewMessage->Class; code = NewMessage->Code; ReplyMsg( NewMessage ); ! if (class==RAWKEY) { c = toasc(code,1); name[i]=c; *************** *** 152,158 default: if (c < ' ' || c > '~') break; ! if (p_wrap && wrap_flag) { x = MINX; y += 8; if (y > MAXY) { --- 152,158 ----- default: if (c < ' ' || c > '~') break; ! if (p_wrap && wrap_flag && x >= MAXX) { x = MINX; y += 8; if (y > MAXY) { ============================================================================