Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Highlight panes running as root #3935

Open
mstarongithub opened this issue Jan 14, 2025 · 0 comments
Open

[Feature Request] Highlight panes running as root #3935

mstarongithub opened this issue Jan 14, 2025 · 0 comments

Comments

@mstarongithub
Copy link

mstarongithub commented Jan 14, 2025

I'd like to request a feature for highlighting individual panes that are running with root permissions, similar to how Gnome's Console does.

Example: I have a pane open where I need to edit fstab (for whatever reason). I'd then run sudo ed /etc/fstab. While the command is running, it would be running with root permissions. During that time, I'd like to have some visual highlight for that fact, lets say that this highlight is a red border for that pane. And while unfocused, it darkens.

I have looked for a possible API methods to achieve this effect, but haven't found anything that would enable recreating this feature.

A possible idea for detecting if a pane is rootfull would be to check its id (via $EUID as example) and enable root colouring if it's 0. I believe the relevant detection function in Gnome Terminal would be this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant