diff --git a/drivers/serial/linux_console.c b/drivers/serial/linux_console.c index 3815b07..2faf8b5 100644 --- a/drivers/serial/linux_console.c +++ b/drivers/serial/linux_console.c @@ -48,10 +48,15 @@ { struct device_d *dev = cdev->dev; struct linux_console_data *d = dev->platform_data; + static char old_c; char c; linux_read(d->stdinfd, &c, 1); + if (old_c == 0x1c && c == 'q') + panic("^\\q pressed - exiting"); + + old_c = c; return c; }