Diff for /gforth/kernel/saccept.fs between versions 1.1 and 1.2

version 1.1, 1997/05/21 20:40:17 version 1.2, 1998/05/02 21:29:09
Line 18 Line 18
 \ along with this program; if not, write to the Free Software  \ along with this program; if not, write to the Free Software
 \ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  \ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   
 : accept  : accept ( adr len -- len )
   over + over ( start end pnt )    over + over ( start end pnt )
   BEGIN    BEGIN
    key  dup #del = IF drop #bs THEN     key dup #del = IF drop #bs THEN
    dup bl u<     dup bl u<
    IF    dup #cr = over #lf = or IF space drop nip swap - EXIT THEN     IF   dup #cr = over #lf = or IF space drop nip swap - EXIT THEN
         #bs = IF 3 pick over <>           #bs = IF 3 pick over <> 
          IF 1 chars - #bs emit bl emit #bs emit ELSE bell THEN THEN          IF 1 chars - #bs emit bl emit #bs emit ELSE bell THEN THEN
    ELSE  >r 2dup <> IF r> dup emit over c! char+ ELSE r> drop bell THEN     ELSE >r 2dup <> IF r> dup emit over c! char+ ELSE r> drop bell THEN
    THEN      THEN 
   AGAIN ;    AGAIN ;
       

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>