Skip to content

Add strikethrough capability to terminfo#2567

Merged
kovidgoyal merged 2 commits into
kovidgoyal:masterfrom
wladh:terminfo
Apr 19, 2020
Merged

Add strikethrough capability to terminfo#2567
kovidgoyal merged 2 commits into
kovidgoyal:masterfrom
wladh:terminfo

Conversation

@wladh
Copy link
Copy Markdown
Contributor

@wladh wladh commented Apr 18, 2020

Add strikethrough capability to terminfo so programs (such as vim/neovim) can find it.

The termcap aliases are not standard, but they are used by Vim, it
seems. As far as I can tell, there are no standard termcap attribute for
strikethrough.
@kovidgoyal
Copy link
Copy Markdown
Owner

Is there some reference to these codes somewhere? All I can find is that
they are tmux extensions. Do any applications actually use them?

@trygveaa
Copy link
Copy Markdown
Contributor

They are mentioned here at least: https://invisible-island.net/xterm/terminfo-contents.html#tic-ecma_strikeout

# The rmxx/smxx capabilities are an ncurses extension
ecma+strikeout|ECMA-48 strikeout/crossed-out,
        rmxx=\E[29m, smxx=\E[9m,

@wladh
Copy link
Copy Markdown
Contributor Author

wladh commented Apr 18, 2020

In addition to what @trygveaa said, the terminfo capabilities are used by neovim (that's how I ended up making this change), and according to vim's doc, it's using the termcap attributes I added there (but I haven't tested it).

@kovidgoyal kovidgoyal merged commit bdd6828 into kovidgoyal:master Apr 19, 2020
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

Successfully merging this pull request may close these issues.

4 participants