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

Question about underilne and colour #3550

Closed
lanox opened this issue Apr 28, 2023 · 12 comments
Closed

Question about underilne and colour #3550

lanox opened this issue Apr 28, 2023 · 12 comments

Comments

@lanox
Copy link

lanox commented Apr 28, 2023

Hi,

I am struggling to find documentation for underline/double-underline and also how do you change the colour of the underline?

I have found this thread but don't know how to set the colour.

#1771

this is my statuline

setw -g window-status-current-format "#[underscore]#[fg=#1d2021,bg=#default] #I #{?window_zoomed_flag,  ,}"

This is how it looks right now, although changing underline to double-underline does nothing

Screenshot 2023-04-28 at 11 56 52 am

Thanks

@nicm
Copy link
Member

nicm commented Apr 28, 2023

Are you sure your terminal supports underline styles and tmux knows that it does?

I don't think you can set underline colour from a style, support was never added. It is currently only for applications inside tmux to use.

@lanox
Copy link
Author

lanox commented Apr 28, 2023

right, I thought support was added for style.

how about double-underline should that be working?

iTerm2 seems to be supporting the underline as I
Screenshot 2023-04-28 at 3 22 05 pm

which tells me that is supported.

@nicm
Copy link
Member

nicm commented Apr 28, 2023

What does running tmux info|grep Smulx inside tmux show?

@lanox
Copy link
Author

lanox commented Apr 28, 2023

tmux info|grep Smulx 218: Smulx: (string) \033[4:%p1%dm

@nicm
Copy link
Member

nicm commented Apr 28, 2023

What if you try the curly style inside tmux? Does double work outside?

@lanox
Copy link
Author

lanox commented Apr 28, 2023

changing window-status-current-format "#[curly] doesn't seem to do anything

@nicm
Copy link
Member

nicm commented Apr 28, 2023

It is curly-underscore... come on.

You know curly underscores work outside tmux (your screenshot shows it). If you try #[curly-underscore] inside tmux does it work? If you do the same printf inside as you tried outside tmux, does it work?

@lanox
Copy link
Author

lanox commented Apr 28, 2023

my apologies was distracted by something else yes that works
Screenshot 2023-04-28 at 3 45 02 pm

@nicm
Copy link
Member

nicm commented Apr 28, 2023

OK it seems like iTerm2 just doesn't have double underline then?

@lanox
Copy link
Author

lanox commented Apr 28, 2023

Right, thanks I might follow it up over with iTerm2

@nicm
Copy link
Member

nicm commented Apr 28, 2023

Great stuff.

@nicm nicm closed this as completed Apr 28, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants