mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add support for alternative break-to-debugger to syscons(4). While most
keyboards allow console break sequences (such as ctrl-alt-esc) to be entered, alternative break can prove useful under virtualisation and remote console systems where entering control sequences can be difficult or unreliable. MFC after: 3 weeks Approved by: re (bz)
This commit is contained in:
parent
04114c5ee3
commit
a608af7817
2 changed files with 7 additions and 0 deletions
|
|
@ -3562,6 +3562,10 @@ next_code:
|
|||
/* goto next_code */
|
||||
} else {
|
||||
/* regular keys (maybe MKEY is set) */
|
||||
#if !defined(SC_DISABLE_KDBKEY) && defined(KDB)
|
||||
if (enable_kdbkey)
|
||||
kdb_alt_break(c, &sc->sc_altbrk);
|
||||
#endif
|
||||
if (!(sc->flags & SC_SCRN_BLANKED))
|
||||
return c;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -266,6 +266,9 @@ typedef struct sc_softc {
|
|||
u_char cursor_char;
|
||||
u_char mouse_char;
|
||||
|
||||
#ifdef KDB
|
||||
int sc_altbrk;
|
||||
#endif
|
||||
} sc_softc_t;
|
||||
|
||||
/* virtual screen */
|
||||
|
|
|
|||
Loading…
Reference in a new issue