Lines Matching refs:term
48 sttyparse(argc, argv, term, ocb, cb, termiox, winsize)
51 int term; /* type of tty device, -1 means allow all options,
75 if ((term & ASYNC) || term == -1) {
77 cb->c_cc[VERASE] = gct(*++argv, term);
79 cb->c_cc[VINTR] = gct(*++argv, term);
81 cb->c_cc[VQUIT] = gct(*++argv, term);
83 cb->c_cc[VEOF] = gct(*++argv, term);
87 cb->c_cc[VEOL] = gct(*++argv, term);
89 cb->c_cc[VEOL] = gct(*++argv, term);
91 cb->c_cc[VEOL2] = gct(*++argv, term);
95 cb->c_cc[VKILL] = gct(*++argv, term);
97 cb->c_cc[VSWTCH] = gct(*++argv, term);
100 if((term & TERMIOS) || term == -1) {
102 cb->c_cc[VSTART] = gct(*++argv, term);
104 cb->c_cc[VSTOP] = gct(*++argv, term);
106 cb->c_cc[VSUSP] = gct(*++argv, term);
108 cb->c_cc[VDSUSP] = gct(*++argv, term);
110 cb->c_cc[VREPRINT] = gct(*++argv, term);
112 cb->c_cc[VDISCARD] = gct(*++argv, term);
114 cb->c_cc[VWERASE] = gct(*++argv, term);
116 cb->c_cc[VLNEXT] = gct(*++argv, term);
139 else if (eqarg("line", argc) && (!(term & TERMIOS) || term == -1) && --argc) {
160 else if((term & TERMIOS) && eqarg("ospeed", argc) && --argc) {
170 else if((term & TERMIOS) && eqarg("ispeed", argc) && --argc) {
191 if ((!(term & ASYNC) || term == -1) && eqarg("ctab", argc) && --argc) {
192 cb->c_cc[7] = gct(*++argv, term);
205 if((term & TERMIOS) || term == -1) {
218 if((!(term & ASYNC) || term == -1) && eq("sane")) {
227 if((term & TERMIOS) || term == -1)
238 if((term & TERMIOS) || term == -1)
244 if((term & FLOW) || term == -1) {
270 if(!encode(cb, term)) {
312 static int gct(cp, term)
314 int term;
324 c = (term & TERMIOS) ? _POSIX_VDISABLE : 0200; /* map '^-' to undefined */
342 int term = 0;
344 term |= ASYNC;
355 term |= TERMIOS;
365 term |= FLOW;
368 term |= WINDOW;
369 return term;
374 set_ttymode(fd, term, termio, termios, stermio, termiox, winsize, owinsize)
375 int fd, term;
383 if (term & ASYNC) {
384 if(term & TERMIOS) {
406 if(term & FLOW) {
417 static int encode(cb, term)
419 int term;
430 if((term & TERMIOS) && i < 20 && term != -1 || i < 12)
437 if(term & TERMIOS)