summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-19 21:57:17 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-19 21:57:17 +0200
commitb20ba0c5260d26f688fe843a68ac2ffbea6b0f07 (patch)
tree9f63a4e8307a2c8fe3702686d6322b6aa4b0ead0 /src/ui/text.c
parentd69315ebec5e6ffc35d78ce7caf8d1559d6841c6 (diff)
Text: Recognize more ANSI escapes
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index c62a4541..2dd778fd 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -366,8 +366,8 @@ void init_Text(SDL_Renderer *render) {
366 iText *d = &text_; 366 iText *d = &text_;
367 d->contentFont = nunito_TextFont; 367 d->contentFont = nunito_TextFont;
368 d->headingFont = nunito_TextFont; 368 d->headingFont = nunito_TextFont;
369 d->contentFontSize = contentScale_Text_; 369 d->contentFontSize = contentScale_Text_;
370 d->ansiEscape = new_RegExp("\\[([0-9;]+)m", 0); 370 d->ansiEscape = new_RegExp("[[()]([0-9;AB]*)m", 0);
371 d->render = render; 371 d->render = render;
372 /* A grayscale palette for rasterized glyphs. */ { 372 /* A grayscale palette for rasterized glyphs. */ {
373 SDL_Color colors[256]; 373 SDL_Color colors[256];