[Libguestfs] [PATCH 0/7] p2v: Multiple improvements to the look of virt-p2v.

Richard W.M. Jones rjones at redhat.com
Sat Jun 18 15:09:10 UTC 2016


In the run dialog, I have implemented an ANSI colour escape sequence
interpreter, so that colours displayed by the remote virt-v2v are now
shown to the user.
(https://bugzilla.redhat.com/show_bug.cgi?id=1314244)

This requires virt-v2v to send colours.  It wasn't doing that because
the output was a pipe (as we capture the output into the log file).
So I added a global --colours option to make the tools show ANSI
escape sequences even if the output is not a tty.

We don't want to show debug messages to the user during conversion.
This was tricky: I solved it by only sending back stdout from virt-v2v
to virt-p2v.  However that doesn't show error messages, so if an error
is encountered, a virt-v2v wrapper script shows the last few lines of
the complete log file (in which the error appears).

Various font fixes.

Rich.





More information about the Libguestfs mailing list