Diff for /gforth/prim between versions 1.192 and 1.193

version 1.192, 2006/04/02 09:18:56 version 1.193, 2006/04/09 08:24:47
Line 1647  n=1; Line 1647  n=1;
 \g hostos  \g hostos
   
 key-file        ( wfileid -- c )                gforth  paren_key_file  key-file        ( wfileid -- c )                gforth  paren_key_file
 ""Read one character @i{c} from @i{wfileid}.    ""  ""Read one character @i{c} from @i{wfileid}.  This word disables
   buffering for @i{wfileid}.  If you want to read characters from a
   terminal in non-canonical (raw) mode, you have to put the terminal in
   non-canonical mode yourself (using the C interface); the exception is
   @code{stdin}: Gforth automatically puts it into non-canonical mode.""
 #ifdef HAS_FILE  #ifdef HAS_FILE
 fflush(stdout);  fflush(stdout);
 c = key((FILE*)wfileid);  c = key((FILE*)wfileid);
Line 1657  c = key(stdin); Line 1661  c = key(stdin);
   
 key?-file       ( wfileid -- f )                gforth  key_q_file  key?-file       ( wfileid -- f )                gforth  key_q_file
 ""@i{f} is true if at least one character can be read from @i{wfileid}  ""@i{f} is true if at least one character can be read from @i{wfileid}
 without blocking.""  without blocking.  If you also want to use @code{read-file} or
   @code{read-line} on the file, you have to call @code{key?-file} or
   @code{key-file} first (these two words disable buffering).""
 #ifdef HAS_FILE  #ifdef HAS_FILE
 fflush(stdout);  fflush(stdout);
 f = key_query((FILE*)wfileid);  f = key_query((FILE*)wfileid);
Line 1668  f = key_query(stdin); Line 1674  f = key_query(stdin);
 \+os  \+os
   
 stdin   ( -- wfileid )  gforth  stdin   ( -- wfileid )  gforth
   ""The standard input file of the Gforth process.""
 wfileid = (Cell)stdin;  wfileid = (Cell)stdin;
   
 stdout  ( -- wfileid )  gforth  stdout  ( -- wfileid )  gforth
   ""The standard output file of the Gforth process.""
 wfileid = (Cell)stdout;  wfileid = (Cell)stdout;
   
 stderr  ( -- wfileid )  gforth  stderr  ( -- wfileid )  gforth
   ""The standard error output file of the Gforth process.""
 wfileid = (Cell)stderr;  wfileid = (Cell)stderr;
   
 form    ( -- urows ucols )      gforth  form    ( -- urows ucols )      gforth

Removed from v.1.192  
changed lines
  Added in v.1.193


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