chiark / gitweb /
inhibit: make the output more readable
authorMantas Mikulėnas <grawity@gmail.com>
Sun, 17 Feb 2013 19:00:34 +0000 (21:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2013 18:22:30 +0000 (19:22 +0100)
commit41330ddb033f2cbeeb565e43708be91d5df28fb2
tree226dba84740f0c87d4a7b1e3ab5ad3eb0cc45542
parent41be2ca14d34b67776240bc67facf341b156b974
inhibit: make the output more readable

The columnar output can become pretty horrible. When GNOME inhibits
power/suspend/hibernate keys, the "WHAT" column's text extends to "WHO"
and even "WHY". At the same time, all texts in "WHY" are of the form

    GNOME handlin...sses
    Receiving sle...ions
    GNOME needs t...reen

This patch splits each inhibit entry into four lines, allowing the full
text to fit in a normal-width terminal.
src/login/inhibit.c