[ClusterLabs] pcs output to console/terminal

Michal Pospíšil mpospisi at redhat.com
Tue Sep 29 17:07:15 UTC 2026


Hi lejeczek,

As far as I know, we only wrap PCS output to the terminal if it's
interactive. Redirecting output to a file or to other utilities should
disable wrapping. Each command can behave slightly differently because some
use the new architecture - a PCS library command and a CLI formatter. Older
commands write the output directly using helper functions (though a quick
search in the latest PCS version suggests that even the old architecture
seems to use the new wrapping function). Sometimes, PCS only reprints what
it's been given, like in the case of `pcs status` and no wrapping is done.
No build parameter affects text wrapping and the only hard-coded limit is
the minimum line length for wrapping which is 40 characters.

Are you experiencing any issues with wrapping? Which command, PCS version,
and distro are you using?


Regards,
Michal

On Mon, Sep 28, 2026 at 8:13 AM lejeczek via Users <users at clusterlabs.org>
wrote:

> Hi guys.
>
> Would you know if any paramters |& envs may affect _pcs_ output lines'
> lenght?
> Specifically - what might make lines brake? (before console/terminal width)
> Or... could it be hard-coded at build/compile time?
> thanks, L.
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
>


-- 

MICHAL POSPÍŠIL
He / Him / His

Software Engineer

RHEL HA Cluster - PCS

Red Hat Czech, s.r.o. <https://www.redhat.com>
Purkyňova 665/115, 612 00 Brno
<https://www.redhat.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20260929/81db610f/attachment.htm>


More information about the Users mailing list