Lines Matching refs:cb
45 static struct termios cb; variable
99 &ocb, &cb, &stio, &termiox, &winsize)) < 0) { in main()
105 if (cfgetospeed(&cb) == in main()
113 if ((cb.c_cflag&CBAUD) == in main()
128 &ocb, &cb, &stio, &termiox, &winsize)) < 0) { in main()
138 &ocb, &cb, &stio, &termiox, &winsize)) < 0) { in main()
168 term, &ocb, &cb, &termiox, &winsize)) { in main()
174 term, &ocb, &cb, &stio, &termiox, &winsize, &owinsize) == -1) { in main()
220 m = cb.c_cflag; in prmodes()
221 if ((term & TERMIOS) && cfgetispeed(&cb) != 0 && in prmodes()
222 cfgetispeed(&cb) != cfgetospeed(&cb)) { in prmodes()
223 prspeed("ispeed ", cfgetispeed(&cb)); in prmodes()
224 prspeed("ospeed ", cfgetospeed(&cb)); in prmodes()
226 prspeed("speed ", cfgetospeed(&cb)); in prmodes()
263 if ((cb.c_lflag & ICANON) == 0) in prmodes()
265 cb.c_cc[VMIN], cb.c_cc[VTIME]); in prmodes()
267 if (cb.c_cc[VINTR] != CINTR) in prmodes()
268 pit(cb.c_cc[VINTR], "intr", "; "); in prmodes()
269 if (cb.c_cc[VQUIT] != CQUIT) in prmodes()
270 pit(cb.c_cc[VQUIT], "quit", "; "); in prmodes()
271 if (cb.c_cc[VERASE] != CERASE) in prmodes()
272 pit(cb.c_cc[VERASE], "erase", "; "); in prmodes()
273 if (cb.c_cc[VKILL] != CKILL) in prmodes()
274 pit(cb.c_cc[VKILL], "kill", "; "); in prmodes()
275 if (cb.c_cc[VEOF] != CEOF) in prmodes()
276 pit(cb.c_cc[VEOF], "eof", "; "); in prmodes()
277 if (cb.c_cc[VEOL] != CNUL) in prmodes()
278 pit(cb.c_cc[VEOL], "eol", "; "); in prmodes()
279 if (cb.c_cc[VEOL2] != CNUL) in prmodes()
280 pit(cb.c_cc[VEOL2], "eol2", "; "); in prmodes()
281 if (cb.c_cc[VSWTCH] != CSWTCH) in prmodes()
282 pit(cb.c_cc[VSWTCH], "swtch", "; "); in prmodes()
284 if (cb.c_cc[VSTART] != CSTART) in prmodes()
285 pit(cb.c_cc[VSTART], "start", "; "); in prmodes()
286 if (cb.c_cc[VSTOP] != CSTOP) in prmodes()
287 pit(cb.c_cc[VSTOP], "stop", "; "); in prmodes()
288 if (cb.c_cc[VSUSP] != CSUSP) in prmodes()
289 pit(cb.c_cc[VSUSP], "susp", "; "); in prmodes()
290 if (cb.c_cc[VDSUSP] != CDSUSP) in prmodes()
291 pit(cb.c_cc[VDSUSP], "dsusp", "; "); in prmodes()
292 if (cb.c_cc[VREPRINT] != CRPRNT) in prmodes()
293 pit(cb.c_cc[VREPRINT], "rprnt", "; "); in prmodes()
294 if (cb.c_cc[VDISCARD] != CFLUSH) in prmodes()
295 pit(cb.c_cc[VDISCARD], "flush", "; "); in prmodes()
296 if (cb.c_cc[VWERASE] != CWERASE) in prmodes()
297 pit(cb.c_cc[VWERASE], "werase", "; "); in prmodes()
298 if (cb.c_cc[VLNEXT] != CLNEXT) in prmodes()
299 pit(cb.c_cc[VLNEXT], "lnext", "; "); in prmodes()
304 m = cb.c_iflag; in prmodes()
333 m = cb.c_oflag; in prmodes()
363 m = cb.c_lflag; in prmodes()
472 m = cb.c_cflag; in pramodes()
474 if ((term & TERMIOS) && cfgetispeed(&cb) != 0 && in pramodes()
475 cfgetispeed(&cb) != cfgetospeed(&cb)) { in pramodes()
476 prspeed("ispeed ", cfgetispeed(&cb)); in pramodes()
477 prspeed("ospeed ", cfgetospeed(&cb)); in pramodes()
479 prspeed("speed ", cfgetospeed(&cb)); in pramodes()
489 if ((cb.c_lflag & ICANON) == 0) in pramodes()
491 cb.c_cc[VMIN], cb.c_cc[VTIME]); in pramodes()
493 pit(cb.c_cc[VINTR], "intr", "; "); in pramodes()
494 pit(cb.c_cc[VQUIT], "quit", "; "); in pramodes()
495 pit(cb.c_cc[VERASE], "erase", "; "); in pramodes()
496 pit(cb.c_cc[VKILL], "kill", ";\n"); in pramodes()
497 pit(cb.c_cc[VEOF], "eof", "; "); in pramodes()
498 pit(cb.c_cc[VEOL], "eol", "; "); in pramodes()
499 pit(cb.c_cc[VEOL2], "eol2", "; "); in pramodes()
500 pit(cb.c_cc[VSWTCH], "swtch", ";\n"); in pramodes()
502 pit(cb.c_cc[VSTART], "start", "; "); in pramodes()
503 pit(cb.c_cc[VSTOP], "stop", "; "); in pramodes()
504 pit(cb.c_cc[VSUSP], "susp", "; "); in pramodes()
505 pit(cb.c_cc[VDSUSP], "dsusp", ";\n"); in pramodes()
506 pit(cb.c_cc[VREPRINT], "rprnt", "; "); in pramodes()
507 pit(cb.c_cc[VDISCARD], "flush", "; "); in pramodes()
508 pit(cb.c_cc[VWERASE], "werase", "; "); in pramodes()
509 pit(cb.c_cc[VLNEXT], "lnext", ";\n"); in pramodes()
514 m = cb.c_cflag; in pramodes()
528 m = cb.c_iflag; in pramodes()
546 m = cb.c_lflag; in pramodes()
572 m = cb.c_oflag; in pramodes()
655 if ((cb.c_lflag & ICANON) == 0) in prachars()
656 (void) fprintf(output, "min %d, time %d\n", cb.c_cc[VMIN], in prachars()
657 cb.c_cc[VTIME]); in prachars()
661 pcol(cb.c_cc[VERASE], 0); in prachars()
662 pcol(cb.c_cc[VKILL], 0); in prachars()
663 pcol(cb.c_cc[VWERASE], 0); in prachars()
664 pcol(cb.c_cc[VREPRINT], 0); in prachars()
665 pcol(cb.c_cc[VDISCARD], 0); in prachars()
666 pcol(cb.c_cc[VLNEXT], 0); in prachars()
667 pcol(cb.c_cc[VSUSP], cb.c_cc[VDSUSP]); in prachars()
668 pcol(cb.c_cc[VINTR], 0); in prachars()
669 pcol(cb.c_cc[VQUIT], 0); in prachars()
670 pcol(cb.c_cc[VSTOP], cb.c_cc[VSTART]); in prachars()
671 if (cb.c_lflag&ICANON) in prachars()
672 pcol(cb.c_cc[VEOF], cb.c_cc[VEOL]); in prachars()
674 if (cb.c_cc[VEOL2] != 0 || cb.c_cc[VSWTCH] != 0) { in prachars()
678 pcol(cb.c_cc[VEOL2], 0); in prachars()
679 pcol(cb.c_cc[VSWTCH], 0); in prachars()
781 (void) printf("%x:%x:%x:%x:", cb.c_iflag, cb.c_oflag, in prencode()
782 cb.c_cflag, cb.c_lflag); in prencode()
790 (void) printf("%x:", cb.c_cc[i]); in prencode()
791 (void) printf("%x\n", cb.c_cc[last]); in prencode()