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

feat: support dim opacity #50

Open
mikesmithgh opened this issue Nov 9, 2023 · 1 comment
Open

feat: support dim opacity #50

mikesmithgh opened this issue Nov 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mikesmithgh
Copy link
Owner

printf "%s\033[2;39m%s" "hi" "bye"

SGR (Select Graphic Rendition) parameters (see https://en.wikipedia.org/wiki/ANSI_escape_code)

2 | Faint, decreased intensity, or dim | May be implemented as a light font weight like bold.[39]
2 Faint, decreased intensity, or dim May be implemented as a light font weight like bold.[39]

kitty.conf

# dim_opacity 0.4

#: How much to dim text that has the DIM/FAINT attribute set. One
#: means no dimming and zero means fully dimmed (i.e. invisible).

kitty with default dim_opacity 0.4
Screenshot 2023-11-09 at 3 52 00 PM

kitty-scrollback.nvim

Screenshot 2023-11-09 at 3 52 34 PM

Determine CSI 2 (faint) color based on kitty.conf dim_opacity, calculate via faint() (See
https://github.com/kovidgoyal/kitty/blob/master/kittens/tui/operations.py#L204).

If too hard to automatically convert, then add documentations and workaround steps.

@mikesmithgh
Copy link
Owner Author

kovidgoyal/kitty#6803 may be related, double check once you start to work this

@mikesmithgh mikesmithgh added the enhancement New feature or request label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant