예제 #1
0
파일: input.c 프로젝트: Nicholas-S/xaric
/* cursor_to_input: move the cursor to the input line, if not there already */
void cursor_to_input(void)
{
    Screen *old_current_screen;

    old_current_screen = current_screen;
    for (current_screen = screen_list; current_screen; current_screen = current_screen->next) {
	if (current_screen->alive && is_cursor_in_display(NULL)) {
	    term_move_cursor(cursor, input_line);
	    cursor_not_in_display();
	    term_flush();
	}
    }
    set_current_screen(old_current_screen);
}
예제 #2
0
파일: input.c 프로젝트: choppsv1/ircii
/* cursor_to_input: move the cursor to the input line, if not there already */
void
cursor_to_input(void)
{
	if (screen_get_alive(get_current_screen()) && is_cursor_in_display())
	{
		ScreenInputData *inputdata = screen_get_inputdata(get_current_screen());

		term_move_cursor(inputdata->cursor_x, inputdata->cursor_y);
		Debug(DB_CURSOR, "cursor_to_input: moving cursor to input for screen %d",
		       screen_get_screennum(get_current_screen()));
		cursor_not_in_display();
		term_flush();
	}
}
예제 #3
0
파일: input.c 프로젝트: carriercomm/epic5-1
/* cursor_to_input: move the cursor to the input line, if not there already */
void 	cursor_to_input (void)
{
	Screen *oldscreen = last_input_screen;
	Screen *screen;

	if (!foreground)
		return;		/* Dont bother */

	for (screen = screen_list; screen; screen = screen->next)
	{
		if (screen->alive && is_cursor_in_display(screen))
		{
			output_screen = screen;
			last_input_screen = screen;
			term_move_cursor(INPUT_CURSOR, INPUT_LINE);
			term_flush();
			cursor_not_in_display(screen);
		}
	}
	output_screen = last_input_screen = oldscreen;
}