| 1 |
|
| 2 |
|
| 3 |
#include "pdcx11.h" |
| 4 |
|
| 5 |
RCSID("$Id: pdcsetsc.c,v 1.33 2008/07/14 04:24:52 wmcbrine Exp $") |
| 6 |
|
| 7 |
#include <string.h> |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
int PDC_curs_set(int visibility) |
| 37 |
{ |
| 38 |
int ret_vis = SP->visibility; |
| 39 |
|
| 40 |
PDC_LOG(("PDC_curs_set() - called: visibility=%d\n", visibility)); |
| 41 |
|
| 42 |
if (visibility != -1) |
| 43 |
SP->visibility = visibility; |
| 44 |
|
| 45 |
PDC_display_cursor(SP->cursrow, SP->curscol, SP->cursrow, |
| 46 |
SP->curscol, visibility); |
| 47 |
|
| 48 |
return ret_vis; |
| 49 |
} |
| 50 |
|
| 51 |
void PDC_set_title(const char *title) |
| 52 |
{ |
| 53 |
int len; |
| 54 |
|
| 55 |
PDC_LOG(("PDC_set_title() - called:<%s>\n", title)); |
| 56 |
|
| 57 |
len = strlen(title) + 1; |
| 58 |
|
| 59 |
XCursesInstruct(CURSES_TITLE); |
| 60 |
|
| 61 |
if (XC_write_display_socket_int(len) >= 0) |
| 62 |
if (XC_write_socket(xc_display_sock, title, len) >= 0) |
| 63 |
return; |
| 64 |
|
| 65 |
XCursesExitCursesProcess(1, "exiting from PDC_set_title"); |
| 66 |
} |
| 67 |
|
| 68 |
int PDC_set_blink(bool blinkon) |
| 69 |
{ |
| 70 |
if (pdc_color_started) |
| 71 |
COLORS = 16; |
| 72 |
|
| 73 |
return blinkon ? ERR : OK; |
| 74 |
} |