aboutsummaryrefslogtreecommitdiff
path: root/drivers/char/ser_a2232.c
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>2008-12-16 00:09:38 +0000
committerPaul Mackerras <paulus@samba.org>2008-12-21 14:21:15 +1100
commit368c1e3249afe0e59097e7df664435ae55fb9f8d (patch)
treebdcfedb358238fa0775b933f7a2393eb3c552a36 /drivers/char/ser_a2232.c
parent532774ec7fa396da20ca724c0cf83d93ee76622f (diff)
hvc_console: Escape magic sysrq key
The ctrl-o (^O) is a common control key used by several applications, such as vim, but hvc_console uses ^O as the magic-sysrq key. This commit allows users to send ^O to applications by pressing ^O twice in succession. To implement this, this commit introduces a check if ^O is pressed again if the sysrq_pressed variable is already set. In this case, clear sysrq_pressed state and flip the ^O character to the tty. (The old behavior has always set "sysrq_pressed" if ^O has been entered, and it has not flipped the ^O character to the tty.) Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/char/ser_a2232.c')
0 files changed, 0 insertions, 0 deletions