soc/intel/xeon_sp/util: Enhance lock_pam0123
[coreboot2.git] / payloads / libpayload / curses / PDCurses / sdl1 / pdcsetsc.c
blob6794354fd3cf4b2181d4eb78fa0affb32b1de36d
1 /* Public Domain Curses */
3 #include "pdcsdl.h"
5 RCSID("$Id: pdcsetsc.c,v 1.7 2008/07/14 04:24:52 wmcbrine Exp $")
7 /*man-start**************************************************************
9 Name: pdcsetsc
11 Synopsis:
12 int PDC_set_blink(bool blinkon);
13 void PDC_set_title(const char *title);
15 Description:
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
29 PDC_set_blink - - -
30 PDC_set_title - - -
32 **man-end****************************************************************/
34 int PDC_curs_set(int visibility)
36 int ret_vis;
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);
46 return ret_vis;
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)
59 COLORS = 16;
61 return blinkon ? ERR : OK;