Ejemplo n.º 1
0
static void move_right()
{
	if( offset == len )
	{
		return;
	}

	offset++;
	term_cursor_right();
}
Ejemplo n.º 2
0
/* input_move_cursor: moves the cursor left or right... got it? */
void input_move_cursor(int dir)
{
    cursor_to_input();
    if (dir) {
	if (THIS_CHAR) {
	    THIS_POS++;
	    term_cursor_right();
	}
    } else {
	if (THIS_POS > MIN_POS) {
	    THIS_POS--;
	    term_cursor_left();
	}
    }
    update_input(NO_UPDATE);
}