Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/ape/lib/curses/plan9/pdcsetsc.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include <curspriv.h>
#include "pdcplan9.h"


int PDC_curs_set(int vis)
{
	int rvis;
	chtype *ch;

	PDC_LOG(("PDC_curs_set() - called: visibility=%d\n", vis));
	rvis = SP->visibility;
	p9setcur(SP->cursrow, SP->curscol, SP->cursrow, SP->curscol, vis);
	SP->visibility = vis;

	return rvis;
}


void PDC_set_title(const char *title)
{
	PDC_LOG(("PDC_set_title() - called:<%s>\n", title));
	p9setlabel(title);
}


int PDC_set_blink(bool blinkon)
{
	PDC_LOG(("PDC_set_title() - called:<%d>\n", blinkon));
	if (pdc_color_started)
		COLORS = 16;

	return blinkon ? ERR : OK;
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.