Download PC UNOS A Real Time Operating System

Transcript
SCREEN OPERATIONS
clear_window
__________________________________________________________________
Function
To clear the current window and set it to its background colour.
Syntax
#include “screen.h”
void clear_window( void );
Remarks
This function should be used instead of the standard C function clearviewport(), in Graphics
mode, and may be used instead of clrscr() in text mode.
Parameters
None.
Return value
None.
c_printf
Function
__________________________________________________________________
Types a formatted string on the screen in text or graphics mode.
Syntax
#include “screen.h”
int c_printf( const char *format [,argument,...]);
Remarks
Has the same function as the standard C function cprintf(), plus graphics mode capability, in
which it uses the default text style. See cprintf() specification for details of format and
argument.
Parameters
format:
argument(s)
Return value
Number of characters ouput.
pointer to a format string.
argument list.
current_key
__________________________________________________________________
Function
Provides the character currently in use as the keyed input.
Syntax
#include “screen.h”
char current_key( void );
Remarks
The character returned is that being used within the screen task. This will be the last keystroke
or the value set by a call to set_key() ( whichever occurred last) if the screen task pass in
which that event took place is current. Otherwise the returned value is the NULL character.
Parameters
None.
Return value
Character currently in use as the last keystroke.
PC_UNOS Reference Manual
Page 33 of 56
$Revision:: 1.0$