disable the unrecognized nls flag
[AROS-Contrib.git] / fish / input / console.c
blob4352c97f24a2209cb469f87b80d99ed7b533271e
1 /*******************************
2 * CONSOLE 08/04/90
3 * Written by Timm Martin
4 * This code is public domain.
5 ********************************/
7 #include <aros/oldprograms.h>
8 #include <devices/console.h>
9 #include <exec/devices.h>
10 #include <exec/types.h>
11 #include "input.h"
13 struct Device *ConsoleDevice = NULL;
14 struct IOStdReq ConsoleReq;
15 long ConsoleError = TRUE;
17 /****************
18 * CONSOLE OPEN
19 *****************/
21 /*
22 This function attempts to open the console device. TRUE or FALSE is returned
23 whether it was successful.
26 BOOL console_open( void )
28 if (!(ConsoleError = OpenDevice( "console.device", -1L,
29 (struct IORequest *)&ConsoleReq, 0 )))
30 ConsoleDevice = ConsoleReq.io_Device;
32 return (ConsoleError == FALSE);
35 /*****************
36 * CONSOLE CLOSE
37 ******************/
39 /*
40 This procedure closes the console device if it was opened and resets the
41 corresponding pointers.
44 void console_close( void )
46 if (!ConsoleDevice)
48 CloseDevice( (struct IORequest *)&ConsoleReq );
49 ConsoleDevice = NULL;