Пример #1
0
// command "cls" --------------------------------------------------------------
//
PRIVATE
void Cmd_CLS()
{
	if ( con_in_talk_mode ) {

		// reactivate talkmode
		InitTalkMode();

	} else {
		wclear( g_curses_out_win );
	}
}
Пример #2
0
// command "talk" (toggle talk mode on and off) -------------------------------
//
PRIVATE
void Cmd_TALK()
{
	// toggle talk mode
	con_in_talk_mode = !con_in_talk_mode;

	if ( con_in_talk_mode ) {
		// talkmode init clears screen
		InitTalkMode();
	} else {
		// clear screen
		Cmd_CLS();
	}
}
Пример #3
0
// command "cls" --------------------------------------------------------------
//
PRIVATE
void Cmd_CLS()
{
	if ( con_in_talk_mode ) {

		// reactivate talkmode
		InitTalkMode();

	} else {

		// ensure automatic linefeed will not be eaten
		CON_EnableLineFeed();

		// ensure that after successive linefeed
		// ( con_bottom == 0 ) && ( con_content == 1 )
		con_bottom	= -1;
		con_content = 0;

		// reset back-viewing
		con_back_view = 0;
	}
}