• Hendrik Brueckner's avatar
    hvc_console: Escape magic sysrq key · 368c1e32
    Hendrik Brueckner authored
    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: default avatarHendrik Brueckner <brueckner@linux.vnet.ibm.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    368c1e32
hvc_console.c 21.8 KB