Chapter 3 Terminal Specific Function Library
83
3.8.2 Cursor
A coordinate system is used for the cursor movement routines to determine the cursor
location. The coordinates given to the top left point is (0, 0), while those of the bottom right
point depend on the varying size of both screen and font.
Model
Optimus S
Optimus R
Top_Left
(0, 0)
(0, 0)
Bottom_Right
(99, 63)
(127, 63)
GetCursor
Purpose
To get the current cursor status.
Syntax
int GetCursor (void);
Example
if (GetCursor() == 0) puts ("Cursor Off");
Description
This routine checks the cursor indication on the LCD, i.e. whether it is visible
(On) or not (Off).
Return
If visible, it returns 1.
Otherwise, it returns 0.
See Also
SetCursor
gotoxy
Purpose
To move the cursor to a new position.
Syntax
void gotoxy (int x_position, int y_position);
int x_position; /* x coordinate of the new cursor position desired */
int y_position; /* y coordinate of the new cursor position desired */
Example
gotoxy (10, 0) /* move the cursor to the 11th column of the first line */
Description
This routine moves the cursor to a new position whose coordinates are
specified in the argument
x_position
and
y_position
.
Return
None
See Also
wherexy
SetCursor
Purpose
To turn on/off the cursor indication on the LCD.
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...