Lines Matching refs:ip

96 ksearch(char ***argvp, struct info *ip)
103 ip->off = 1;
106 ip->off = 0;
112 if (!(kp->flags & F_OFFOK) && ip->off) {
116 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) {
121 kp->f(ip);
126 f_cbreak(struct info *ip)
129 if (ip->off)
130 f_sane(ip);
132 ip->t.c_iflag |= BRKINT|IXON|IMAXBEL;
133 ip->t.c_oflag |= OPOST;
134 ip->t.c_lflag |= ISIG|IEXTEN;
135 ip->t.c_lflag &= ~ICANON;
136 ip->set = 1;
141 f_columns(struct info *ip)
144 ip->win.ws_col = atoi(ip->arg);
145 ip->wset = 1;
149 f_dec(struct info *ip)
152 ip->t.c_cc[VERASE] = (u_char)0177;
153 ip->t.c_cc[VKILL] = CTRL('u');
154 ip->t.c_cc[VINTR] = CTRL('c');
155 ip->t.c_lflag &= ~ECHOPRT;
156 ip->t.c_lflag |= ECHOE|ECHOKE|ECHOCTL;
157 ip->t.c_iflag &= ~IXANY;
158 ip->set = 1;
162 f_extproc(struct info *ip)
165 if (ip->set) {
167 (void)ioctl(ip->fd, TIOCEXT, &tmp);
170 (void)ioctl(ip->fd, TIOCEXT, &tmp);
175 f_ispeed(struct info *ip)
178 cfsetispeed(&ip->t, atoi(ip->arg));
179 ip->set = 1;
183 f_nl(struct info *ip)
186 if (ip->off) {
187 ip->t.c_iflag |= ICRNL;
188 ip->t.c_oflag |= ONLCR;
190 ip->t.c_iflag &= ~ICRNL;
191 ip->t.c_oflag &= ~ONLCR;
193 ip->set = 1;
197 f_ospeed(struct info *ip)
200 cfsetospeed(&ip->t, atoi(ip->arg));
201 ip->set = 1;
205 f_raw(struct info *ip)
208 if (ip->off)
209 f_sane(ip);
211 cfmakeraw(&ip->t);
212 ip->t.c_cflag &= ~(CSIZE|PARENB);
213 ip->t.c_cflag |= CS8;
214 ip->set = 1;
219 f_rows(struct info *ip)
222 ip->win.ws_row = atoi(ip->arg);
223 ip->wset = 1;
227 f_sane(struct info *ip)
230 ip->t.c_cflag = TTYDEF_CFLAG | (ip->t.c_cflag & (CLOCAL|CRTSCTS));
231 ip->t.c_iflag = TTYDEF_IFLAG;
232 ip->t.c_iflag |= ICRNL;
235 ip->t.c_lflag = TTYDEF_LFLAG | (ip->t.c_lflag & LKEEP);
236 ip->t.c_oflag = TTYDEF_OFLAG;
237 ip->set = 1;
241 f_tty(struct info *ip)