AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Alacritty undercurl8/14/2023 I think nvim thinks tmux is not supporting undercurl so it fall back to underline. I have undercurl support in tmux its working from tmux : printf e 4:3mUnderlinedn But if I open nvim in tmux the undercurl is just underline. We were also considering this in the VTE bug. Help I have undercurl support in nvim if I use bare terminal (alacritty git). A very nice enhancement towards the goal of colored undercurls as noted in this undercurl feature request. In case you're short of bits, I believe it's okay to drop some precision, e.g. Alacritty will now also always fallback to the normal underline in case any of the other underlines like the undercurl are specified. There's no shortcut notation for the first 16 entries (corresponding to SGR 30-37 and 90-97), use the 256-color mode with indices of 0-15 instead.ĥ9 reverts to the default, that is, the underline's color auto-following the text color. (wait, see #6377 (closed)) for direct RGB. I also noticed that, undercurl works in the alacritty terminal when running echo -e 'e4:3mTEST' from the command line. You need to do all the tmux setup as noted by xisaveearth as well as launching Neovim, in the command line, with the appropriate terminal setting (inside tmux): In tmux the default TERM should be tmux-256color, but with neovim that won't display undercurls whilst using the alacritty terminal type will work. That is, 58 5 idx or 58:5:idx for an entry of the 256-color palette, or 58 2 r g b or 58:2. The new SGR 58 and 59 sequences specify the color of the underline, following the pattern of 38 and 39. In the mean time, 4:0, 4:1 and 4:2 were also added as aliases for the standard 24 (turn off all kinds of underlining), 4 (single underline) and 21 (double underline), respectively.Īt some point in the future, probably 4:4 and 4:5 could also stand for dotted and dashed underlines in some order (these are the five types of underlining supported by HTML/CSS). The new SGR 4:3 ( \e[4:3m) attribute, strictly with a colon as separator, was introduced to start a curly underline. for spell checking.Īpparently vim and neovim have already / are about to support these, see e.g. Technically two separate features, but they mostly make sense together, e.g. Testing done without using tmux - which is the final goalĮDIT: So as of writing this post alacritty have added undercurl, but is not part of the latest release 10.1, and has to be built from source.This is originally a feature of Kitty, now also adopted by VTE (GNOME Terminal and friends). Any help is appreciated.īoth alacritty and windows terminal out of the box just show plain flat underline where undercurl is expected, on top of that the line is not even colored (i.e guisp is ignored ? i have set termguicolors enabled) As a point of reference i am using neovide, to make sure the hi groups are properly configured and indeed everything shows up correctly with neovide. curl -s > 24-bit-color.sh bash 24-bit-color. On top of that the next step is to make that work with tmux as well, which seems to open another can of worms. Alacritty has no undercurl support, even though tmux has Testing colors Running this script should look the same in tmux as without. I was expecting that it would just work out of the box. Example: Apologies if this is already working somehow but I've followed a few guides and haven't had any luck on Windows 10 with WSL2 using Windows Terminal along with WezTerm but as soon as I used the same dotfiles within a VirtualBox for Garuda OS it worked for undercurls. I am still unable to make windows terminal or even alacritty show any underline. Description of the new feature/enhancement. At the moment i am testing with alacritty and windows terminal. The newly implemented undercurl doesnt look like undercurl at all on my setup. I am trying to make this work for multiple terminal emulators due to the fact that i am trying to make my configuration as portable as possible. with spell check enabled, but on :term, I could not get it to work. In neovim nightly, this works fine in text files, e.g. It seems there is not any proper standard between different terminal emulators which establishes a common way to display undercurl text it seems (unlike underline?). Im using current NixOS with environment.enableAllTerminfo enabled and KiTTY terminal, one the first to implement (and define) the undercurl and other escape sequences used to style text in modern terminal emulators. I have been pullin my haris for a few days now, an i am pretty confused (documentation is very lacking) on what exactly i have to do to make undercurl work.
0 Comments
Read More
Leave a Reply. |