CO
tputs(CL, CO, addbuf); /* put CL in buffer */
tputs(CD, CO - curr, addbuf);
CO = tgetnum("co"); /* get number of columns */
if (CO == -1)
CO = 65;
static int CO; /* number of columns */
if (LI < 24 || CO < 72 || !(CL && UP && ND)) {
extern int CO, LI; /* usually COLNO and ROWNO+2 */
bufr = alloc(CO);
bufr[CO - 1] = 0;
while (fgets(bufr, CO - 1, fp) && (!strip || *bufr == '\t') && !got_intrup) {
lth = CO - maxlen - 2; /* Use full screen width */
int CO, LI; /* used in pri.c and whatis.c */
CO = columns;
if (CO < COLNO || LI < ROWNO + 2)
if (tlx + (int)strlen(s) > CO)
if (tlx + 8 > CO)
n0 + (int)strlen(toplines) + 3 < CO - 8 && /* leave room for
if (n0 >= CO) {
for (n = 0; n < CO; n++)
for (n = 0; n < CO - 1; n++)
n0 = CO - 2;
if (curx == CO)
int CO, LI, last, bottom, ch, number, trail;
CO = COLS;
if (CO == 0 || LI == 0) {
errx(1, "screen must be a rectangle, not (%dx%d)", CO, LI);
if (CO >= (int)(INT_MAX / (2 * sizeof(short *)) / LI)) {
errx(1, "screen (%dx%d) too large for worms", CO, LI);
if (LI < 3 || CO < 3 || LI * CO < 40) {
errx(1, "screen (%dx%d) too small for worms", CO, LI);
maxlength = minlength + (CO * LI / 40);
ul = (unsigned long)CO * LI;
maxlength = CO * LI / 3 / number;
ul = (CO * LI) / ((minlength + maxlength)/2 * 3);;
last = CO - 1;
if (!(ip = calloc(LI * CO, sizeof(short))))
ip += CO;
for (x = CO; --x >= 0;) {
if (CO)