hishamhm / htop

htop is an interactive text-mode process viewer for Unix systems. It aims to be a better 'top'.
GNU General Public License v2.0
5.84k stars 581 forks source link

Htop column padding for v2.2.0 #951

Closed manitu-opensource closed 5 months ago

manitu-opensource commented 4 years ago

This PR allows adapting the column width via global or local htoprc.

Just write column_padding=[COLUMN_NAME]:[WIDTH) e.g. column_padding=USER:20 to have the column 20 chars wide (right padded with spaces).

Attention: Using more than 255 chars as padding can lead to segfaults (but should not be useful).