Lines Matching refs:sm_ttyfd
101 int sm_ttyfd; /* Active TTY file descriptor */ member
185 Selmouse.sm_ttyfd = -1; in selection_startup()
190 if (ioctl(Selmouse.sm_ttyfd, WSDISPLAYIO_GETWSCHAR, &ch) < 0) { in selection_startup()
191 (void)close(Selmouse.sm_ttyfd); in selection_startup()
217 if (Selmouse.sm_ttyfd >= 0) in selection_cleanup()
218 (void)close(Selmouse.sm_ttyfd); in selection_cleanup()
402 if (Selmouse.sm_ttyfd >= 0) in open_tty()
403 (void)close(Selmouse.sm_ttyfd); in open_tty()
406 Selmouse.sm_ttyfd = open(buf, O_RDONLY | O_NONBLOCK); in open_tty()
407 if (Selmouse.sm_ttyfd < 0) in open_tty()
411 if (ioctl(Selmouse.sm_ttyfd, TIOCGWINSZ, &ws) < 0) { in open_tty()
443 if (ioctl(Selmouse.sm_ttyfd, WSDISPLAYIO_GETWSCHAR, &ch) == -1) { in char_invert()
452 if (ioctl(Selmouse.sm_ttyfd, WSDISPLAYIO_PUTWSCHAR, &ch) == -1) in char_invert()
482 if (ioctl(Selmouse.sm_ttyfd, WSDISPLAYIO_GETWSCHAR, in fill_buf()
505 if (ioctl(Selmouse.sm_ttyfd, WSDISPLAYIO_GETWSCHAR, &ch) == -1) in row_length()
703 if (ioctl(Selmouse.sm_ttyfd, TIOCSTI, in selarea_paste()