version 1.27, 2009/03/03 21:07:01 |
version 1.28, 2009/03/03 22:17:19 |
Line 227 main(int argc, char *argv[]) |
|
Line 227 main(int argc, char *argv[]) |
|
* offset value. This is useful when doing columnar lists where the |
* offset value. This is useful when doing columnar lists where the |
* prior column has right-padded. |
* prior column has right-padded. |
* |
* |
* - TERMP_LITERAL: don't break apart words. Note that a long literal |
|
* word will violate the right margin. |
|
* |
|
* - TERMP_NOBREAK: this is the most important and is used when making |
* - TERMP_NOBREAK: this is the most important and is used when making |
* columns. In short: don't print a newline and instead pad to the |
* columns. In short: don't print a newline and instead pad to the |
* right margin. Used in conjunction with TERMP_NOLPAD. |
* right margin. Used in conjunction with TERMP_NOLPAD. |
Line 363 flushln(struct termp *p) |
|
Line 360 flushln(struct termp *p) |
|
* pad to the right margin and stay off. |
* pad to the right margin and stay off. |
*/ |
*/ |
|
|
if (p->flags & TERMP_NOBREAK) { |
if (p->flags & TERMP_NOBREAK) |
for ( ; vis < maxvis; vis++) |
for ( ; vis < maxvis; vis++) |
putchar(' '); |
putchar(' '); |
} else |
else |
putchar('\n'); |
putchar('\n'); |
|
|
p->col = 0; |
p->col = 0; |