]> git.proxmox.com Git - pve-client.git/commit
lxc enter: improve escape key handling
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 11 Jun 2018 09:30:38 +0000 (11:30 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 12 Jun 2018 04:30:39 +0000 (06:30 +0200)
commit83a7ab4c1080c407fe9c225c96d30e3456c94c2f
tree3352cee74fd0d7fe7458c032b53b521bad9204ce
parent8b45da2fb8c05ba7676440a9070b9a17a0a12476
lxc enter: improve escape key handling

The escape key should not be passed through, this now only
happens when pressing the escape key twice (as it is with
tmux, screen, ssh, etc.).
Also prepared the code to handle a configurable escape key,
and restructured the handling to more easily allow adding
more keys. For instance we could add shortcuts for some
`pct` commands. Most of them are marginally useful, but
snapshot, migrate, shutdown or stop might still be
nice-to-have things.
The idea is also that if we reuse the code for serial
terminals for VMs we can add shortcuts to eg. paste the
current terminal size (probably the most useful one), or
to send sys-rqs or agent commands.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/APIClient/Commands/lxc.pm