| 1281 | */ |
| 1282 | |
| 1283 | int |
| 1284 | tty_putstrn(struct tty *tp, const char *p, size_t n) |
| 1285 | { |
| 1286 | size_t i; |
| 1287 | |
| 1288 | tty_assert_locked(tp); |
| 1289 | |
| 1290 | if (tty_gone(tp)) |
| 1291 | return (-1); |
| 1292 | |
| 1293 | for (i = 0; i < n; i++) |
| 1294 | ttydisc_echo_force(tp, p[i], 0); |
| 1295 | |
| 1296 | tp->t_writepos = tp->t_column; |
| 1297 | ttyinq_reprintpos_set(&tp->t_inq); |
| 1298 | |
| 1299 | ttydevsw_outwakeup(tp); |
| 1300 | return (0); |
| 1301 | } |
| 1302 | |
| 1303 | int |
| 1304 | tty_putchar(struct tty *tp, char c) |
no test coverage detected