The Xen console intercepts ^O and prevents it from propagating

through to the guest.  However, ^O is a useful key in bash and in
Emacs.  This patch changes the console to pass a single ^O
through to the guest when it is pressed twice.

Signed-off-by: Ben Pfaff <blp@cs.stanford.edu>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-03-12 11:04:34 +00:00
1 parent aca8807ff0
commit e260cd0a07
1 file changed
+5 -2
@@ -348,8 +348,11 @@ void xencons_rx(char *buf, unsigned len, struct pt_regs *regs)
#ifdef CONFIG_MAGIC_SYSRQ
if (sysrq_enabled) {
if (buf[i] == '\x0f') { /* ^O */
sysrq_requested = jiffies;
continue; /* don't print the sysrq key */
if (!sysrq_requested) {
sysrq_requested = jiffies;
continue; /* don't print sysrq key */
}
sysrq_requested = 0;
} else if (sysrq_requested) {
unsigned long sysrq_timeout =
sysrq_requested + HZ*2;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.