https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286592
Jesper Schmitz Mouridsen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #12 from Jesper Schmitz Mouridsen <[email protected]> --- It could be related to the VT still taking keyboard inputs e.g ctrl+C even after ioctl(ttyfd,KDSETMODE,KD_GRAPHICS). That does not seem to happen on Linux. Possible reproducers: I am in console mode tty2/ttyv2 on linux/freebsd. cat linuxttytest.c #include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> #include <linux/kd.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> int main() { int fd = open("/dev/tty2",O_RDONLY | O_NOCTTY); ioctl(fd,KDSETMODE,KD_GRAPHICS); sleep(10); ioctl(fd,KDSETMODE,KD_TEXT); } cat freebsdttytest.c #include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> #include <unistd.h> #include <sys/consio.h> #include <fcntl.h> #include <errno.h> int main() { int fd = open("/dev/ttyv2",O_RDONLY | O_NOCTTY); ioctl(fd,KDSETMODE,KD_GRAPHICS); sleep(10); ioctl(fd,KDSETMODE,KD_TEXT); } Note that on FreeBSD you can use ctrl+c during the sleep... -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
