mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
chore(gui/messagebox): update keybindings
Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
parent
e1491234be
commit
c3208072cd
1 changed files with 8 additions and 7 deletions
|
|
@ -247,37 +247,38 @@ def send_signal(signal, panel):
|
|||
'SIGTERM',
|
||||
't',
|
||||
panel.selection.terminate,
|
||||
keys=('T'),
|
||||
keys=('T',),
|
||||
attrs=(
|
||||
dict(y=0, x=0, width=7, fg='red'),
|
||||
dict(y=0, x=3, width=1, fg='red', attr='underline'),
|
||||
dict(y=0, x=3, width=1, fg='red', attr='bold | underline'),
|
||||
),
|
||||
),
|
||||
MessageBox.Option(
|
||||
'SIGKILL',
|
||||
'k',
|
||||
panel.selection.kill,
|
||||
keys=('K'),
|
||||
keys=('K',),
|
||||
attrs=(
|
||||
dict(y=0, x=0, width=7, fg='red'),
|
||||
dict(y=0, x=3, width=1, fg='red', attr='underline'),
|
||||
dict(y=0, x=3, width=1, fg='red', attr='bold | underline'),
|
||||
),
|
||||
),
|
||||
MessageBox.Option(
|
||||
'SIGINT',
|
||||
'i',
|
||||
panel.selection.interrupt,
|
||||
keys=('I'),
|
||||
keys=('I',),
|
||||
attrs=(
|
||||
dict(y=0, x=0, width=6, fg='red'),
|
||||
dict(y=0, x=3, width=1, fg='red', attr='underline'),
|
||||
dict(y=0, x=3, width=1, fg='red', attr='bold | underline'),
|
||||
),
|
||||
),
|
||||
MessageBox.Option(
|
||||
'Cancel',
|
||||
'c',
|
||||
None,
|
||||
attrs=(dict(y=0, x=0, width=1, attr='underline'),),
|
||||
keys=('C',),
|
||||
attrs=(dict(y=0, x=0, width=1, attr='bold | underline'),),
|
||||
),
|
||||
],
|
||||
default=default,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue