Open udif opened 8 years ago
DirectDraw will not magically fix the lack of SetConsoleTextAttribute.
Even with ANSI codes you can only set single-strikethrough attribute (not supported in ConEmu)
SetConsoleTextAttribute()
, with For my diff project, I replaced strikethrough with underline, by using ESC[4;31m
instead of ESC9;31m
.
The original, under Linux and using ESC[9;31m
looks like this:
Using the standard Windows 10 TH2 CMD.EXE console and ESC[4;31m
for underline produces:
However, under ConEmu using the same ESC[4;31m
sequence produces non-underlined red text with a white grey background using under most of ConEmu's color schemes.
Should I open a separate issue for this?
ESC[4;31m
has different implementations. Yes, in ConEmu it's used for background intensity.udif asked about DirectWrite, NOT DirectDraw. They are not the same thing.
This feature would be nice. I ran into the same issues as udif when writing a diff utility.
I guess this is a feature request, not a bug report:
Is it possible to support the
strikethroughattribute? (ANSI code ESC[9m) ? I know this code is not supported yet, while others are.Here is how this is rendered under Linux: http://askubuntu.com/questions/528928/how-to-do-underline-bold-italic-strikethrough-color-background-and-size-i![alt tag](http://i.stack.imgur.com/Kw4Yf.png)
I assume that this is impossible using the current rendering method, because the
SetConsoleTextAttribute()
API call has no support for strikethrough, but with DirectWrite appearing on the road map and here, I hope this would be possible.http://www.charlespetzold.com/blog/2014/01/Character-Formatting-Extensions-with-DirectWrite.html![alt tag](http://www.charlespetzold.com/blog/2014/01/CustomFormattingDemo14.png)