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

Could you add strikethrough escape code support? #9

Open
ZaWertun opened this issue May 11, 2020 · 2 comments
Open

Could you add strikethrough escape code support? #9

ZaWertun opened this issue May 11, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ZaWertun
Copy link

ZaWertun commented May 11, 2020

It would be working in almost all linux terminal emulators.
You can test it support with:

echo -e "\e[9mtest\e[0m"

изображение

@Titor8115
Copy link
Owner

It would be working in almost all linux terminal emulators.

You can test it support with:

echo -e "\e[9mtest\e[0m"

изображение

That was my first attempt when coding in Ncurses. The escape code, ‘\033’ or ‘\x1b’, does work on win, but somehow refuse to be recognized as ANSI escape codes on a pad. Since I’m using a pad as the container of the actual document, I can’t implement ’\033[9m;’ unless there could be a valid way to render it. The current strikethrough as white rectangle with copiable text is all I could do right now.

But if you find any way to do that, let me know and I’m happy to do change that

@Titor8115 Titor8115 added enhancement New feature or request help wanted Extra attention is needed labels May 11, 2020
@Titor8115
Copy link
Owner

I just found out that Ncurses 6.2 now supports tput. I might tweak around and see if ANSI strikethrough could be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants