Lines Matching refs:obuf
85 struct CHAR obuf[MAXBUF];
242 if (obuf[col].c_char || obuf[col].c_width < 0) {
243 while (col > 0 && obuf[col].c_width < 0)
245 w = obuf[col].c_width;
247 obuf[col++].c_mode |= UNDERL | mode;
252 obuf[col].c_char = '_';
253 obuf[col].c_width = 1;
273 if (obuf[col].c_char == '\0') {
274 obuf[col].c_char = c;
276 obuf[col + i].c_mode = mode;
277 obuf[col].c_width = w;
279 obuf[col + i].c_width = -1;
280 } else if (obuf[col].c_char == '_') {
281 obuf[col].c_char = c;
283 obuf[col + i].c_mode |= UNDERL|mode;
284 obuf[col].c_width = w;
286 obuf[col + i].c_width = -1;
287 } else if (obuf[col].c_char == c) {
289 obuf[col + i].c_mode |= BOLD|mode;
291 w = obuf[col].c_width;
293 obuf[col + i].c_mode = mode;
315 if (obuf[i].c_mode != lastmode) {
317 setnewmode(obuf[i].c_mode);
318 lastmode = obuf[i].c_mode;
320 if (obuf[i].c_char == '\0') {
326 outc(obuf[i].c_char, obuf[i].c_width);
327 if (obuf[i].c_width > 1)
328 i += obuf[i].c_width - 1;
358 switch (obuf[i].c_mode) {
367 *cp++ = obuf[i].c_char;
368 if (obuf[i].c_width > 1)
369 i += obuf[i].c_width - 1;
396 switch (obuf[i].c_mode) {
416 bzero((char *)obuf, sizeof (obuf)); /* depends on NORMAL == 0 */