| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#include <libpayload.h> |
| 5 |
#include "lppdc.h" |
| 6 |
|
| 7 |
int PDC_curs_set(int visibility) |
| 8 |
{ |
| 9 |
int ret_vis; |
| 10 |
|
| 11 |
PDC_LOG(("PDC_curs_set() - called: visibility=%d\n", visibility)); |
| 12 |
|
| 13 |
ret_vis = SP->visibility; |
| 14 |
SP->visibility = visibility; |
| 15 |
|
| 16 |
#if CONFIG(LP_SERIAL_CONSOLE) |
| 17 |
if (curses_flags & F_ENABLE_SERIAL) { |
| 18 |
serial_cursor_enable(visibility); |
| 19 |
} |
| 20 |
#endif |
| 21 |
#if CONFIG(LP_VIDEO_CONSOLE) |
| 22 |
if (curses_flags & F_ENABLE_CONSOLE) { |
| 23 |
video_console_cursor_enable(visibility); |
| 24 |
} |
| 25 |
#endif |
| 26 |
|
| 27 |
return ret_vis; |
| 28 |
} |
| 29 |
|
| 30 |
int PDC_set_blink(bool blinkon) |
| 31 |
{ |
| 32 |
if (pdc_color_started) |
| 33 |
COLORS = 16; |
| 34 |
|
| 35 |
return ERR; |
| 36 |
} |