Lines Matching refs:ip

97 ksearch(char ***argvp, struct info *ip)  in ksearch()  argument
104 ip->off = 1; in ksearch()
107 ip->off = 0; in ksearch()
113 if (!(kp->flags & F_OFFOK) && ip->off) { in ksearch()
117 if (kp->flags & F_NEEDARG && !(ip->arg = *++*argvp)) { in ksearch()
121 kp->f(ip); in ksearch()
126 f_all(struct info *ip) in f_all() argument
128 print(&ip->t, &ip->win, ip->ldisc, BSD); in f_all()
132 f_cbreak(struct info *ip) in f_cbreak() argument
135 if (ip->off) in f_cbreak()
136 f_sane(ip); in f_cbreak()
138 ip->t.c_iflag |= BRKINT|IXON|IMAXBEL; in f_cbreak()
139 ip->t.c_oflag |= OPOST; in f_cbreak()
140 ip->t.c_lflag |= ISIG|IEXTEN; in f_cbreak()
141 ip->t.c_lflag &= ~ICANON; in f_cbreak()
142 ip->set = 1; in f_cbreak()
147 f_columns(struct info *ip) in f_columns() argument
150 ip->win.ws_col = atoi(ip->arg); in f_columns()
151 ip->wset = 1; in f_columns()
155 f_dec(struct info *ip) in f_dec() argument
158 ip->t.c_cc[VERASE] = (u_char)0177; in f_dec()
159 ip->t.c_cc[VKILL] = CTRL('u'); in f_dec()
160 ip->t.c_cc[VINTR] = CTRL('c'); in f_dec()
161 ip->t.c_lflag &= ~ECHOPRT; in f_dec()
162 ip->t.c_lflag |= ECHOE|ECHOKE|ECHOCTL; in f_dec()
163 ip->t.c_iflag &= ~IXANY; in f_dec()
164 ip->set = 1; in f_dec()
168 f_ek(struct info *ip) in f_ek() argument
171 ip->t.c_cc[VERASE] = CERASE; in f_ek()
172 ip->t.c_cc[VKILL] = CKILL; in f_ek()
173 ip->set = 1; in f_ek()
177 f_everything(struct info *ip) in f_everything() argument
180 print(&ip->t, &ip->win, ip->ldisc, BSD); in f_everything()
184 f_extproc(struct info *ip) in f_extproc() argument
187 if (ip->off) { in f_extproc()
189 (void)ioctl(ip->fd, TIOCEXT, &tmp); in f_extproc()
192 (void)ioctl(ip->fd, TIOCEXT, &tmp); in f_extproc()
197 f_ispeed(struct info *ip) in f_ispeed() argument
200 cfsetispeed(&ip->t, (speed_t)atoi(ip->arg)); in f_ispeed()
201 ip->set = 1; in f_ispeed()
205 f_nl(struct info *ip) in f_nl() argument
208 if (ip->off) { in f_nl()
209 ip->t.c_iflag |= ICRNL; in f_nl()
210 ip->t.c_oflag |= ONLCR; in f_nl()
212 ip->t.c_iflag &= ~ICRNL; in f_nl()
213 ip->t.c_oflag &= ~ONLCR; in f_nl()
215 ip->set = 1; in f_nl()
219 f_ospeed(struct info *ip) in f_ospeed() argument
222 cfsetospeed(&ip->t, (speed_t)atoi(ip->arg)); in f_ospeed()
223 ip->set = 1; in f_ospeed()
227 f_raw(struct info *ip) in f_raw() argument
230 if (ip->off) in f_raw()
231 f_sane(ip); in f_raw()
233 cfmakeraw(&ip->t); in f_raw()
234 ip->t.c_cflag &= ~(CSIZE|PARENB); in f_raw()
235 ip->t.c_cflag |= CS8; in f_raw()
236 ip->set = 1; in f_raw()
241 f_rows(struct info *ip) in f_rows() argument
244 ip->win.ws_row = atoi(ip->arg); in f_rows()
245 ip->wset = 1; in f_rows()
249 f_sane(struct info *ip) in f_sane() argument
254 ip->t.c_cflag = def.c_cflag | (ip->t.c_cflag & CLOCAL); in f_sane()
255 ip->t.c_iflag = def.c_iflag; in f_sane()
258 ip->t.c_lflag = def.c_lflag | (ip->t.c_lflag & LKEEP); in f_sane()
259 ip->t.c_oflag = def.c_oflag; in f_sane()
260 ip->set = 1; in f_sane()
264 f_size(struct info *ip) in f_size() argument
267 (void)printf("%d %d\n", ip->win.ws_row, ip->win.ws_col); in f_size()
271 f_speed(struct info *ip) in f_speed() argument
274 (void)printf("%lu\n", (u_long)cfgetospeed(&ip->t)); in f_speed()
278 f_tty(struct info *ip) in f_tty() argument
283 if (ioctl(ip->fd, TIOCSETD, &tmp) < 0) in f_tty()