|
|
@ -497,21 +497,21 @@ tdeletechar(int n) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
memmove(&term.line[term.c.y][dst], &term.line[term.c.y][src], size * sizeof(Glyph)); |
|
|
|
memmove(&term.line[term.c.y][dst], &term.line[term.c.y][src], size * sizeof(Glyph)); |
|
|
|
tclearregion(term.col-size, term.c.y, term.col-1, term.c.y); |
|
|
|
tclearregion(term.col-n, term.c.y, term.col-1, term.c.y); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
void |
|
|
|
tinsertblank(int n) { |
|
|
|
tinsertblank(int n) { |
|
|
|
int src = term.c.x; |
|
|
|
int src = term.c.x; |
|
|
|
int dst = src + n; |
|
|
|
int dst = src + n; |
|
|
|
int size = term.col - n - src; |
|
|
|
int size = term.col - dst; |
|
|
|
|
|
|
|
|
|
|
|
if(dst >= term.col) { |
|
|
|
if(dst >= term.col) { |
|
|
|
tclearregion(term.c.x, term.c.y, term.col-1, term.c.y); |
|
|
|
tclearregion(term.c.x, term.c.y, term.col-1, term.c.y); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
memmove(&term.line[term.c.y][dst], &term.line[term.c.y][src], size * sizeof(Glyph)); |
|
|
|
memmove(&term.line[term.c.y][dst], &term.line[term.c.y][src], size * sizeof(Glyph)); |
|
|
|
tclearregion(src, term.c.y, dst, term.c.y); |
|
|
|
tclearregion(src, term.c.y, dst - 1, term.c.y); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void |
|
|
|
void |
|
|
|