2 /***************************************************************
3 ** I/O subsystem for PForth for common systems.
6 ** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom
8 ** The pForth software code is dedicated to the public domain,
9 ** and any third party may reproduce, distribute and modify
10 ** the pForth software code or any derivative works thereof
11 ** without any compensation or license. The pForth software
12 ** code is provided on an "as is" basis without any warranty
13 ** of any kind, including, without limitation, the implied
14 ** warranties of merchantability and fitness for a particular
15 ** purpose and their equivalents under the laws of any jurisdiction.
17 ****************************************************************
18 ** 941004 PLB Extracted IO calls from pforth_main.c
19 ***************************************************************/
21 #include "../pf_all.h"
23 /* Default portable terminal I/O. */
24 int sdTerminalOut( char c )
28 /* We don't need to echo because getchar() echos. */
29 int sdTerminalEcho( char c )
33 int sdTerminalIn( void )
37 int sdQueryTerminal( void )
42 int sdTerminalFlush( void )
47 return fflush(PF_STDOUT);
51 void sdTerminalInit( void )
54 void sdTerminalTerm( void )