2 /***************************************************************
\r
3 ** I/O subsystem for PForth for WIN32 systems.
\r
6 ** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom
\r
8 ** The pForth software code is dedicated to the public domain,
\r
9 ** and any third party may reproduce, distribute and modify
\r
10 ** the pForth software code or any derivative works thereof
\r
11 ** without any compensation or license. The pForth software
\r
12 ** code is provided on an "as is" basis without any warranty
\r
13 ** of any kind, including, without limitation, the implied
\r
14 ** warranties of merchantability and fitness for a particular
\r
15 ** purpose and their equivalents under the laws of any jurisdiction.
\r
17 ****************************************************************
\r
18 ** 941004 PLB Extracted IO calls from pforth_main.c
\r
19 ***************************************************************/
\r
21 #include "../pf_all.h"
\r
25 /* Use console mode I/O so that KEY and ?TERMINAL will work. */
\r
27 int sdTerminalOut( char c )
\r
29 return _putch((char)(c));
\r
32 /* Needed cuz _getch() does not echo. */
\r
33 int sdTerminalEcho( char c )
\r
35 return _putch((char)(c));
\r
38 int sdTerminalIn( void )
\r
43 int sdQueryTerminal( void )
\r
48 int sdTerminalFlush( void )
\r
53 return fflush(PF_STDOUT);
\r
57 void sdTerminalInit( void )
\r
61 void sdTerminalTerm( void )
\r