[Bug 286592] x11/sddm: Plasma Wayland, pressing "Ctrl+C" causes an automatic exit.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Oct 12 13:55:54 BST 2025
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286592
Jesper Schmitz Mouridsen <jsm at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jsm at FreeBSD.org
--- Comment #12 from Jesper Schmitz Mouridsen <jsm at FreeBSD.org> ---
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.
More information about the kde-freebsd
mailing list