Ejemplo n.º 1
0
int startupmenu(int i)
{
	while (1) {
		drawbox(5, STARTUP_Y-2, 22, STARTUP_N+4, NULL);
		printmenuhelp(19);
		i = startup_menu(i-1, 8, STARTUP_Y);
# ifndef TTY_SOCKET
		if (!i)
			break;
# else
		if (i==2 && !select_2p_tty(24, STARTUP_Y+1))
			continue;
		if (!i) {
			clearbox(0, 6, 0, 16);
			if ((i = menu_checkinvit(1, 7)) == -1) {
				i = 1;
				continue;
			}
			if (!i)
				break;
		}
		setcurs_end();
		cleartoeol();
		textgfx_entermenu();
# endif
		clearbox(0, 6, 0, 16);
		break;
	}
	return i;
}
Ejemplo n.º 2
0
int startupmenu(int i)
{
	while (1) {
		print_vitetris_ver(19, 4);
		newln(0);
		newln(19);
		printstr("Written by"); newln(19);
		printstr("Victor Nilsson"); newln(19);
		printstr("2007-2009");
		i = startup_menu(i-1, 1, 4);
# ifndef TTY_SOCKET
		if (!i)
			break;
# else
		if (i==2 && !select_2p_tty(17, 5))
			continue;
		if (!i && (i = menu_checkinvit(1, 4)) == -1) {
			i = 1;
			continue;
		}
		if (!i)
			break;
		setcurs_end();
		printf("\033[K");
# endif
		clearbox(0, 4, 0, menuheight-4);
		break;
	}
	return i;
}
Ejemplo n.º 3
0
void print_press_key()
{
	print_game_message(1, "PRESS KEY", 1);
#ifdef SOCKET
	if (game->mode & MODE_NETWORK)
		print_game_message(2, opponent_name, 0);
	else
#endif
	if (TWOPLAYER_MODE)
		print_game_message(2, "PRESS KEY", 1);
	setcurs_end();
}
Ejemplo n.º 4
0
Archivo: ansi.c Proyecto: gsrr/Python
void textgfx_end()
{
	if (textgfx_flags == 0xFFF)
		return;
	setcurs_end();
	putch(' ');	/* switch back from acs */
	restore_input_mode();
	printf(
#ifdef UNIX
	"\033[?25h"
#endif
	"\033[m\n");
	textgfx_flags = 0xFFF;
}