Skip to content

“Security Attribute” column width mismatch between table header and body #850

Description

@lucaswerkmeister

When the SECATTR column is added to htop, it’s much wider in the actual table than in the header, which means that all the header columns following it are misaligned.

 Security Attribute     PID△USER       NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command                                                                                                                                                                                                              
?                                      1 root        0  161M 11780  8600 S  0.0  0.0  0:01.56 /usr/lib/systemd/systemd --switched-root --system --deserialize 31                                                                                                                                      
?                                    681 root        0  126M 62724 61216 S  0.0  0.2  0:02.19 ├─ /usr/lib/systemd/systemd-journald

Screenshot from 2021-10-20 00-22-54

This also happens when the column is in another position, though I haven’t tested all possibilities.

    PID△USER       NI  VIRT   RES   SHR  Security Attribute S CPU% MEM%   TIME+  Command                                                                                                                                                                                                              
      1 root        0  161M 11784  8600 ?                                S  0.0  0.0  0:01.56 /usr/lib/systemd/systemd --switched-root --system --deserialize 31                                                                                                                                      

Screenshot from 2021-10-20 00-24-54

This could be just because I don’t use SELinux/AppArmor/etc. and there aren’t any attributes to show, I don’t know.

OS: Arch Linux
htop: 3.1.1, but issue discovered while testing #849, so probably still present in main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions