Lines Matching refs:cb
48 sttyparse(argc, argv, term, ocb, cb, termiox, winsize) in sttyparse() argument
55 struct termios *cb;
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);
85 cb->c_cc[VMIN] = atoi(*++argv);
87 cb->c_cc[VEOL] = gct(*++argv, term);
89 cb->c_cc[VEOL] = gct(*++argv, term);
91 cb->c_cc[VEOL2] = gct(*++argv, term);
93 cb->c_cc[VTIME] = atoi(*++argv);
95 cb->c_cc[VKILL] = gct(*++argv, term);
97 cb->c_cc[VSWTCH] = gct(*++argv, term);
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);
121 cb->c_cc[VERASE] = CERASE;
122 cb->c_cc[VKILL] = CKILL;
125 cb->c_lflag &= ~ECHOPRT;
126 cb->c_lflag |= ECHOE|ECHOCTL;
127 if (cfgetospeed(cb) >= B1200)
128 cb->c_lflag |= ECHOKE;
131 cb->c_cc[VERASE] = 0177;
132 cb->c_cc[VKILL] = CTRL('u');
133 cb->c_cc[VINTR] = CTRL('c');
134 cb->c_lflag &= ~ECHOPRT;
135 cb->c_lflag |= ECHOE|ECHOCTL|IEXTEN;
136 if (cfgetospeed(cb) >= B1200)
137 cb->c_lflag |= ECHOKE;
144 cb->c_cc[VMIN] = 1;
145 cb->c_cc[VTIME] = 0;
148 cb->c_cc[VEOF] = CEOF;
149 cb->c_cc[VEOL] = CNUL;
152 cb->c_cc[VERASE] = CERASE;
153 cb->c_cc[VKILL] = CKILL;
154 cb->c_cc[VQUIT] = CQUIT;
155 cb->c_cc[VINTR] = CINTR;
156 cb->c_cc[VEOF] = CEOF;
157 cb->c_cc[VEOL] = CNUL;
165 cfsetospeed(cb, speeds[i].speed);
175 cfsetispeed(cb, speeds[i].speed);
186 cfsetospeed(cb, B0);
187 cfsetispeed(cb, B0);
188 cfsetospeed(cb, speeds[i].speed);
192 cb->c_cc[7] = gct(*++argv, term);
202 cb->c_iflag &= ~imodes[i].reset;
203 cb->c_iflag |= imodes[i].set;
208 cb->c_iflag &= ~nimodes[i].reset;
209 cb->c_iflag |= nimodes[i].set;
215 cb->c_oflag &= ~omodes[i].reset;
216 cb->c_oflag |= omodes[i].set;
219 cb->c_oflag |= TAB3;
224 cb->c_cflag &= ~cmodes[i].reset;
225 cb->c_cflag |= cmodes[i].set;
230 cb->c_cflag &= ~ncmodes[i].reset;
231 cb->c_cflag |= ncmodes[i].set;
235 cb->c_lflag &= ~lmodes[i].reset;
236 cb->c_lflag |= lmodes[i].set;
241 cb->c_lflag &= ~nlmodes[i].reset;
242 cb->c_lflag |= nlmodes[i].set;
270 if(!encode(cb, term)) {
417 static int encode(cb, term) in encode() argument
418 struct termios *cb; in encode()
432 cb->c_iflag = grab[0];
433 cb->c_oflag = grab[1];
434 cb->c_cflag = grab[2];
435 cb->c_lflag = grab[3];
442 cb->c_cc[i] = (unsigned char) grab[i+4];