mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
pikvm/pikvm#732: added some other linux magic keys
This commit is contained in:
parent
53d0855cf8
commit
c236cc3016
@ -643,13 +643,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
<div class="buttons-row">
|
||||||
|
<button class="row25" data-shortcut="AltLeft PrintScreen KeyF" title="Call the OOM killer to kill a memory hog process">F</button>
|
||||||
|
<button class="row25" data-shortcut="AltLeft PrintScreen KeyM" title="Dump current memory info to the console">M</button>
|
||||||
|
<button class="row25" data-shortcut="AltLeft PrintScreen KeyD" title="Show all locks that are held">D</button>
|
||||||
|
<button class="row25" data-shortcut="AltLeft PrintScreen KeyT" title="Dump a list of current tasks and their information to the console">T</button>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
<div class="buttons-row">
|
<div class="buttons-row">
|
||||||
<button class="row16" data-shortcut="AltLeft PrintScreen KeyR" title="Turn off keyboard raw mode, set it to XLATE">R</button>
|
<button class="row16" data-shortcut="AltLeft PrintScreen KeyR" title="Turn off keyboard raw mode, set it to XLATE">R</button>
|
||||||
<button class="row16" data-shortcut="AltLeft PrintScreen KeyE" title="Send a SIGTERM to all processes, except for init">E</button>
|
<button class="row16" data-shortcut="AltLeft PrintScreen KeyE" title="Send a SIGTERM to all processes, except for init">E</button>
|
||||||
<button class="row16" data-shortcut="AltLeft PrintScreen KeyI" title="Send a SIGKILL to all processes, except for init">I</button>
|
<button class="row16" data-shortcut="AltLeft PrintScreen KeyI" title="Send a SIGKILL to all processes, except for init">I</button>
|
||||||
<button class="row16" data-shortcut="AltLeft PrintScreen KeyS" title="Attempt to sync all mounted filesystems">S</button>
|
<button class="row16" data-shortcut="AltLeft PrintScreen KeyS" title="Attempt to sync all mounted filesystems">S</button>
|
||||||
<button class="row16" data-shortcut="AltLeft PrintScreen KeyU" title="Attempt to remount all mounted filesystems read-only">U</button>
|
<button class="row16" data-shortcut="AltLeft PrintScreen KeyU" title="Attempt to remount all mounted filesystems read-only">U</button>
|
||||||
<button class="row16" data-shortcut="AltLeft PrintScreen KeyB" title="Immediately reboot the system without syncing or unmounting your disks">B</button>
|
<button class="row16" data-shortcut="AltLeft PrintScreen KeyB" title="Immediately reboot the system without syncing or unmounting disks">B</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -36,12 +36,23 @@ li(class="right")
|
|||||||
div(class="buttons-row")
|
div(class="buttons-row")
|
||||||
-
|
-
|
||||||
let sysrq = {
|
let sysrq = {
|
||||||
|
"F": "Call the OOM killer to kill a memory hog process",
|
||||||
|
"M": "Dump current memory info to the console",
|
||||||
|
"D": "Show all locks that are held",
|
||||||
|
"T": "Dump a list of current tasks and their information to the console",
|
||||||
|
}
|
||||||
|
each title, key in sysrq
|
||||||
|
button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row25" title=`${title}`) #{key}
|
||||||
|
hr
|
||||||
|
div(class="buttons-row")
|
||||||
|
-
|
||||||
|
sysrq = {
|
||||||
"R": "Turn off keyboard raw mode, set it to XLATE",
|
"R": "Turn off keyboard raw mode, set it to XLATE",
|
||||||
"E": "Send a SIGTERM to all processes, except for init",
|
"E": "Send a SIGTERM to all processes, except for init",
|
||||||
"I": "Send a SIGKILL to all processes, except for init",
|
"I": "Send a SIGKILL to all processes, except for init",
|
||||||
"S": "Attempt to sync all mounted filesystems",
|
"S": "Attempt to sync all mounted filesystems",
|
||||||
"U": "Attempt to remount all mounted filesystems read-only",
|
"U": "Attempt to remount all mounted filesystems read-only",
|
||||||
"B": "Immediately reboot the system without syncing or unmounting your disks",
|
"B": "Immediately reboot the system without syncing or unmounting disks",
|
||||||
}
|
}
|
||||||
each title, key in sysrq
|
each title, key in sysrq
|
||||||
button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row16" title=`${title}`) #{key}
|
button(data-shortcut=`AltLeft PrintScreen Key${key}` class="row16" title=`${title}`) #{key}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user