qrexec-client-vm was stripping the escape chars on output.

The server was not aware of the TERM setting, so I made it
explicit, based on common assumptions.  For both gnome-term and
Xterm, the output now matches that of the pass command.
This commit is contained in:
Beto HydroxyButyrate 2021-03-02 20:55:32 +10:00
parent 0ee5f650e4
commit e1aae10b77
No known key found for this signature in database
GPG Key ID: C0E847470C0B2F22
3 changed files with 14 additions and 1 deletions

View File

@ -142,7 +142,10 @@ PASS_MANAGE = "ruddo.PassManage"
def send_args(rpc, *args, **kwargs):
cmd = ['/usr/lib/qubes/qrexec-client-vm', opts.dest_vm, rpc]
cmd = ['/usr/lib/qubes/qrexec-client-vm',
'--no-filter-escape-chars-stdout',
'--no-filter-escape-chars-stderr',
opts.dest_vm, rpc]
# print(cmd, file=sys.stderr)
return_stdout = kwargs.get("return_stdout", False)
if "return_stdout" in kwargs:

View File

@ -1,4 +1,9 @@
#!/bin/bash
#
# xterm-256color seems to be the qubes default
# for gnome-term and Xterm
#
export TERM="xterm-256color"
set -e
set -o pipefail

View File

@ -1,4 +1,9 @@
#!/bin/bash
#
# xterm-256color seems to be the qubes default
# for gnome-term and Xterm
#
export TERM="xterm-256color"
set -e