]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Honor reedit opts printing to a function
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Jun 2012 09:11:27 +0000 (11:11 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Jun 2012 13:04:28 +0000 (15:04 +0200)
commitb00469b61522db5cae4debc9041fb1fc6b6746f8
tree19ba5e730a4e9ce84bda9dc0fb60b59d752bd4ed
parent0f4660c8787cc41fe67f869984c0ae11d680037e
virsh: Honor reedit opts printing to a function

When printing reedit options we make stdin raw. However,
this results in stdout being raw as well. Therefore we need
to return carriage when doing new line. Unfortunately,
'\r' cannot be part of internationalized messages hence
we must move them to formatting string which then in turn
become huge and disarranged. To solve this, a new function
is introduced which takes variable string arguments and
prepend each with "\r\n" just before printing.
tools/virsh.c