Mercurial > ecos-v3_0-branch
changeset 1876:f312b4ab3d25
* include/pcmb_serial.h,
* src/pcmb_screen.c: define cyg_hal_plf_screen_position() which can
be used to get the current cursor location
| author | asl |
|---|---|
| date | Sat, 22 Jan 2005 15:11:31 +0000 |
| parents | 1dc9b52a3c1f |
| children | a39454249629 |
| files | packages/hal/i386/pcmb/current/ChangeLog packages/hal/i386/pcmb/current/include/pcmb_serial.h packages/hal/i386/pcmb/current/src/pcmb_screen.c |
| diffstat | 3 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/hal/i386/pcmb/current/ChangeLog +++ b/packages/hal/i386/pcmb/current/ChangeLog @@ -1,6 +1,13 @@ +2005-01-22 Ian Campbell <icampbell@arcom.com> + + * include/pcmb_serial.h, + * src/pcmb_screen.c: define cyg_hal_plf_screen_position() which can + be used to get the current cursor location. + 2003-09-20 Gary Thomas <gary@mlbassoc.com> - * include/pcmb_io.h: IDE init needs to return number of controllers found. + * include/pcmb_io.h: IDE init needs to return number of controllers + found. 2003-07-23 Nick Garnett <nickg@balti.calivar.com>
--- a/packages/hal/i386/pcmb/current/include/pcmb_serial.h +++ b/packages/hal/i386/pcmb/current/include/pcmb_serial.h @@ -88,7 +88,7 @@ typedef struct { #if CYGINT_HAL_I386_PCMB_SCREEN_SUPPORT > 0 __externC void cyg_hal_plf_screen_init(void); - +__externC void cyg_hal_plf_screen_position(int *x, int *y); #endif //---------------------------------------------------------------------------
--- a/packages/hal/i386/pcmb/current/src/pcmb_screen.c +++ b/packages/hal/i386/pcmb/current/src/pcmb_screen.c @@ -848,6 +848,13 @@ void cyg_hal_plf_screen_init(void) // || defined(CYGPRI_HAL_IMPLEMENTS_IF_SERVICES) +// Return the position of the cursor. +void cyg_hal_plf_screen_position(int *x, int *y) +{ + *x = XPos; + *y = YPos; +} + //----------------------------------------------------------------------------- #endif // CYGINT_HAL_I386_PCMB_SCREEN_SUPPORT
