Hi lejeczek,

pcs uses python's shutil.get_terminal_size function, which tries to read
the terminal width from the COLUMNS environment variable. Pcs respects
this value as long as it is set to higher than 40. As Michal noted, line
wrapping only works during interactive terminal sessions. However, this
can be bypassed using utilities such as `script`, `faketty` or
`unbuffered`.

Here is an approximate list of pcs commands whose output can be modified
by setting the COLUMNS environment variable:
* pcs alert config
* pcs config
* pcs constraint config
* pcs property describe
* pcs resource | stonith config
* pcs resource | stonith describe
* pcs resource | stonith list
* pcs stonith level config
* pcs tag config

On 9/28/26 08:12, lejeczek via Users 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/

_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/

Reply via email to