2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
6 #include <exec/types.h>
14 static void SetConsoleMode( LONG mode
);
15 static TEXT
GetChar( void );
16 static void PutChar( TEXT buffer
);
17 static void PutString( STRPTR buffer
);
23 SetConsoleMode( MODE_RAW
);
32 if( ch
== 'x' || ch
== 3 )
36 SetConsoleMode( MODE_CON
);
42 static void SetConsoleMode( LONG mode
)
44 SetMode( Input() , mode
);
47 static TEXT
GetChar( void )
51 Read( Output() , &buffer
, 1 );
56 static void PutChar( TEXT buffer
)
58 Write( Output() , &buffer
, 1 );
61 static void PutString( STRPTR buffer
)
63 Write( Output() , buffer
, strlen( buffer
) );