mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +08:00
Add support for italics (#1009)
Co-authored-by: Ken Reneris <ms/devops kreneris@microsoft.com> Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
@@ -106,6 +106,12 @@ void UpdatePixelStyle(const Screen* screen,
|
||||
: "\x1B[27m"); // INVERTED_RESET
|
||||
}
|
||||
|
||||
// Italics
|
||||
if (FTXUI_UNLIKELY(next.italic != prev.italic)) {
|
||||
ss << (next.italic ? "\x1B[3m" // ITALIC_SET
|
||||
: "\x1B[23m"); // ITALIC_RESET
|
||||
}
|
||||
|
||||
// StrikeThrough
|
||||
if (FTXUI_UNLIKELY(next.strikethrough != prev.strikethrough)) {
|
||||
ss << (next.strikethrough ? "\x1B[9m" // CROSSED_OUT
|
||||
|
Reference in New Issue
Block a user