2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <exec/types.h>
14 void SetConsoleMode( LONG mode
);
16 void PutChar( TEXT buffer
);
17 void PutString( STRPTR buffer
);
18 void Wait4Char( void );
24 SetConsoleMode( MODE_RAW
);
34 if( ch
== 'x' || ch
== 3 )
38 SetConsoleMode( MODE_CON
);
44 void SetConsoleMode( LONG mode
)
46 SetMode( Input() , mode
);
53 Read( Output() , &buffer
, 1 );
58 void PutChar( TEXT buffer
)
60 Write( Output() , &buffer
, 1 );
63 void PutString( STRPTR buffer
)
65 Write( Output() , buffer
, strlen( buffer
) );
68 void Wait4Char( void )
70 WaitForChar( Input() , 0 );