version 1.103, 2009/09/23 11:02:21 |
version 1.104, 2009/10/10 11:05:23 |
|
|
term_flushln(struct termp *p) |
term_flushln(struct termp *p) |
{ |
{ |
int i, j; |
int i, j; |
size_t vbl, vsz, vis, maxvis, mmax, bp; |
size_t vbl, vsz, vis, maxvis, mmax, bp, os; |
static int overstep = 0; |
static int overstep = 0; |
|
|
/* |
/* |
Line 172 term_flushln(struct termp *p) |
|
Line 172 term_flushln(struct termp *p) |
|
assert(p->offset < p->rmargin); |
assert(p->offset < p->rmargin); |
assert((int)(p->rmargin - p->offset) - overstep > 0); |
assert((int)(p->rmargin - p->offset) - overstep > 0); |
|
|
|
/* Save the overstep. */ |
|
os = (size_t)overstep; |
|
|
maxvis = /* LINTED */ |
maxvis = /* LINTED */ |
p->rmargin - p->offset - overstep; |
p->rmargin - p->offset - overstep; |
mmax = /* LINTED */ |
mmax = /* LINTED */ |
Line 233 term_flushln(struct termp *p) |
|
Line 236 term_flushln(struct termp *p) |
|
putchar(' '); |
putchar(' '); |
vis = 0; |
vis = 0; |
} |
} |
|
/* Remove the overstep width. */ |
|
bp += os; |
|
os = 0; |
} else { |
} else { |
for (j = 0; j < (int)vbl; j++) |
for (j = 0; j < (int)vbl; j++) |
putchar(' '); |
putchar(' '); |