version 1.146, 2019/03/12 18:30:08 |
version 1.147, 2019/03/12 20:02:47 |
|
|
|
|
/* Move cursor to px,py. */ |
/* Move cursor to px,py. */ |
void |
void |
screen_write_cursormove(struct screen_write_ctx *ctx, int px, int py) |
screen_write_cursormove(struct screen_write_ctx *ctx, int px, int py, |
|
int origin) |
{ |
{ |
struct screen *s = ctx->s; |
struct screen *s = ctx->s; |
|
|
if (py != -1 && (s->mode & MODE_ORIGIN)) { |
if (origin && py != -1 && (s->mode & MODE_ORIGIN)) { |
if ((u_int)py > s->rlower - s->rupper) |
if ((u_int)py > s->rlower - s->rupper) |
py = s->rlower; |
py = s->rlower; |
else |
else |