[gforth] / gforth / kernel / io.fs  

gforth: gforth/kernel/io.fs

Diff for /gforth/kernel/io.fs between version 1.15 and 1.19

version 1.15, Sat May 20 14:25:43 2000 UTC version 1.19, Fri Aug 18 08:56:33 2000 UTC
Line 72 
Line 72 
 \G Determine whether a character is available. If a character is  \G Determine whether a character is available. If a character is
 \G available, @var{flag} is true; the next call to @code{key} will  \G available, @var{flag} is true; the next call to @code{key} will
 \G yield the character. Once @code{key?} returns true, subsequent  \G yield the character. Once @code{key?} returns true, subsequent
 \G calls to @code{key?} without calling @code{key} or @code{ekey} will  \G calls to @code{key?} before calling @code{key} or @code{ekey} will
 \G also return true.  \G also return true.
   
 [IFDEF] (key?) ' (key?) IS key? [THEN]  [IFDEF] (key?) ' (key?) IS key? [THEN]
Line 95 
Line 95 
   
 : bell  #bell emit [ has? os [IF] ] outfile-id flush-file drop [ [THEN] ] ;  : bell  #bell emit [ has? os [IF] ] outfile-id flush-file drop [ [THEN] ] ;
 : cr ( -- ) \ core c-r  : cr ( -- ) \ core c-r
   \G Output a newline (of the favourite kind of the host OS)      \G Output a newline (of the favourite kind of the host OS).  Note
       \G that due to the way the Forth command line interpreter inserts
       \G newlines, the preferred way to use @code{cr} is at the start
       \G of a piece of text; e.g., @code{cr ." hello, world"}.
   newline type ;    newline type ;
   
 : space ( -- ) \ core  : space ( -- ) \ core
Line 111 
Line 114 
 \ space spaces                                          21mar93py  \ space spaces                                          21mar93py
 decimal  decimal
 Create spaces ( u -- ) \ core  Create spaces ( u -- ) \ core
   \G If @var{n} > 0, display @var{n} spaces.    \G Display @var{n} spaces.
   bl 80 times \ times from target compiler! 11may93jaw    bl 80 times \ times from target compiler! 11may93jaw
 DOES>   ( u -- )  DOES>   ( u -- )
   swap    swap


Generate output suitable for use with a patch program
Legend:
Removed from v.1.15  
changed lines
  Added in v.1.19

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help