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

Add strikethrough capability to terminfo #2567

Merged
merged 2 commits into from Apr 19, 2020
Merged

Add strikethrough capability to terminfo #2567

merged 2 commits into from Apr 19, 2020

Conversation

wladh
Copy link
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
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
Sponsor 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
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.

None yet

4 participants