Is there a way of emulating the Linux virtual console inside X?
I. e. an environment where /dev/tty
for all practical
purposes (ioctl_console(2)
) acts exactly as the Linux console
would but that runs as an X client and can be fired up at will
and allows screenshots?
I want to avoid having to resort to QEMU if possible.
(Note that a terminal emulator will no do as it does not support
the required ioctl()
s.)
Background: I’m programming against the virtual console and need a more efficient (and possibly automatable) approach to testing.
int main(){char c; assert(ioctl (0, KDGETLED, &c) == 0); }
.