fix_cpos;
static void move(Terminal *term, int x, int y, int marg_clip){    if (x < 0)	x = 0;    if (x >= term->cols)	x = term->cols - 1;    if (marg_clip) {	if ((term->curs.y >= term->marg_t || marg_clip == 2) &&	    y < term->marg_t)	    y = term->marg_t;	if ((term->curs.y <= term->marg_b || marg_clip == 2) &&	    y > term->marg_b)	    y = term->marg_b;    }    if (y < 0)	y = 0;    if (y >= term->rows)	y = term->rows - 1;    term->curs.x = x;    term->curs.y = y;    fix_cpos;    term->wrapnext = FALSE;}