]> git.proxmox.com Git - qemu-server.git/commitdiff
termproxy, vncproxy: use -escape 0 for qm terminal
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 12 Dec 2017 08:54:50 +0000 (09:54 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 13 Dec 2017 13:52:28 +0000 (14:52 +0100)
There's no reason to have Ctrl+O terminate these sessions.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Qemu.pm

index 8ff6bd438bca4fae729e9caa52c7a9f9d8ef73bc..0983ce6977e0ac91d284429e25fe9c1e43ff767c 100644 (file)
@@ -1430,7 +1430,7 @@ __PACKAGE__->register_method({
            if ($conf->{vga} && ($conf->{vga} =~ m/^serial\d+$/)) {
 
 
-               my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid, '-iface', $conf->{vga} ];
+               my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid, '-iface', $conf->{vga}, '-escape', '0' ];
 
                $cmd = ['/usr/bin/vncterm', '-rfbport', $port,
                        '-timeout', $timeout, '-authpath', $authpath,
@@ -1558,7 +1558,7 @@ __PACKAGE__->register_method({
        my $remcmd = $remip ?
            ['/usr/bin/ssh', '-e', 'none', '-t', $remip, '--'] : [];
 
-       my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid];
+       my $termcmd = [ '/usr/sbin/qm', 'terminal', $vmid, '-escape', '0'];
        push @$termcmd, '-iface', $serial if $serial;
 
        my $realcmd = sub {