File:  [Research Unix] / researchv9 / jerq / src / lib / jj / confirm.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv9-SUN3_old, researchv9-SUN3, HEAD
researchv9-SUN3(old)

#include	<jerq.h>

static Texture tc[3] ={
	/* button 1 */
	0x000E, 0x071F, 0x0317, 0x736F, 0xFBCE, 0xDB8C, 0xDBC0, 0xFB6C,
	0x77FC, 0x0000, 0x0400, 0x0C00, 0x9929, 0xF0C6, 0x60C6, 0x4129,
	/* button 2 */
	0x000E, 0x0E3E, 0x062E, 0xE6DE, 0xF79C, 0xB718, 0xB780, 0xF6D8,
	0xEFF8, 0x0000, 0x0040, 0x00C0, 0x2992, 0xCF0C, 0xC60C, 0x2412,
	/* button 3 */
	0x000E, 0x071F, 0x0317, 0x736F, 0xFBCE, 0xDB8C, 0xDBC0, 0xFB6C,
	0x77FC, 0x0000, 0x0001, 0x0003, 0x94A6, 0x633C, 0x6318, 0x9490,
};

confirm(but)	/* get confirmation from button but */
	int but;
{
	Texture *ot;
	int ret;

	while(button123());
	ot = cursswitch(&tc[but-1]);
	while(!button123());
	ret = button(but);
	while(button123());
	(void)cursswitch(ot);
	return(ret);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.