1 /* Public Domain Curses */ 2 3 #include "pdcsdl.h" 4 5 /*man-start************************************************************** 6 7 pdcsetsc 8 -------- 9 10 ### Synopsis 11 12 int PDC_set_blink(bool blinkon); 13 void PDC_set_title(const char *title); 14 15 ### Description 16 17 PDC_set_blink() toggles whether the A_BLINK attribute sets an 18 actual blink mode (TRUE), or sets the background color to high 19 intensity (FALSE). The default is platform-dependent (FALSE in 20 most cases). It returns OK if it could set the state to match 21 the given parameter, ERR otherwise. Current platforms also 22 adjust the value of COLORS according to this function -- 16 for 23 FALSE, and 8 for TRUE. 24 25 PDC_set_title() sets the title of the window in which the curses 26 program is running. This function may not do anything on some 27 platforms. (Currently it only works in Win32 and X11.) 28 29 ### Portability 30 X/Open BSD SYS V 31 PDC_set_blink - - - 32 PDC_set_title - - - 33 34 **man-end****************************************************************/ 35 36 int PDC_curs_set(int visibility) 37 { 38 int ret_vis; 39 40 PDC_LOG(("PDC_curs_set() - called: visibility=%d\n", visibility)); _clean(void)41 42 ret_vis = SP->visibility; 43 44 SP->visibility = visibility; 45 46 PDC_gotoyx(SP->cursrow, SP->curscol); 47 48 return ret_vis; 49 } 50 51 void PDC_set_title(const char *title) 52 { 53 PDC_LOG(("PDC_set_title() - called:<%s>\n", title)); 54 55 SDL_WM_SetCaption(title, title); 56 } 57 PDC_retile(void)58int PDC_set_blink(bool blinkon) 59 { 60 // if (pdc_color_started) /* We've got 256 colors in this version */ 61 // COLORS = 16; 62 63 return blinkon ? ERR : OK; 64 } 65