Exemple #1
0
void	set_mail (const void *stuff)
{
	int	value = *(const int *)stuff;

	if (value < 0 || value > 3)
	{
		say("/SET MAIL must be 0, 1, 2, or 3");
		set_int_var(MAIL_VAR, 0);
		return;
	}
	else if (value == 0)
		checkmail->deinit();
	else
	{
		if (!checkmail->init())
			return;
	}

	update_system_timer(mail_timeref);
	update_all_status();
	cursor_to_input();
}
Exemple #2
0
void    set_mail_interval (const void *stuff)
{
	update_system_timer(mail_timeref);
}
Exemple #3
0
/*
 * When cpu saver mode is turned off (by the user pressing a key), then
 * we immediately do all of the system timers and then they will reset
 * themselves to go off as regular.
 */
void	reset_system_timers (void)
{
	cpu_saver = 0;
	update_system_timer(NULL);
	cpu_saver_timer(NULL);
}
Exemple #4
0
void	my_set_clock (void *stuff)
{
	update_system_timer(clock_timeref);
	update_all_status();
}
Exemple #5
0
void    set_clock_interval (void *stuff)
{
	update_system_timer(clock_timeref);	/* XXX Oh heck, why not? */
}
Exemple #6
0
void	set_clock (const void *stuff)
{
	update_system_timer(clock_timeref);
	update_all_status();
	cursor_to_input();
}