1 /* Public Domain Curses */
5 RCSID("$Id: pdcsetsc.c,v 1.7 2008/07/14 04:24:52 wmcbrine Exp $")
7 /*man-start**************************************************************
12 int PDC_set_blink(bool blinkon);
13 void PDC_set_title(const char *title);
16 PDC_set_blink() toggles whether the A_BLINK attribute sets an
17 actual blink mode (TRUE), or sets the background color to high
18 intensity (FALSE). The default is platform-dependent (FALSE in
19 most cases). It returns OK if it could set the state to match
20 the given parameter, ERR otherwise. Current platforms also
21 adjust the value of COLORS according to this function -- 16 for
22 FALSE, and 8 for TRUE.
24 PDC_set_title() sets the title of the window in which the curses
25 program is running. This function may not do anything on some
26 platforms. (Currently it only works in Win32 and X11.)
28 Portability X/Open BSD SYS V
32 **man-end****************************************************************/
34 int PDC_curs_set(int visibility
)
38 PDC_LOG(("PDC_curs_set() - called: visibility=%d\n", visibility
));
40 ret_vis
= SP
->visibility
;
42 SP
->visibility
= visibility
;
44 PDC_gotoyx(SP
->cursrow
, SP
->curscol
);
49 void PDC_set_title(const char *title
)
51 PDC_LOG(("PDC_set_title() - called:<%s>\n", title
));
53 SDL_WM_SetCaption(title
, title
);
56 int PDC_set_blink(bool blinkon
)
58 if (pdc_color_started
)
61 return blinkon
? ERR
: OK
;