diff --git a/examples/00-helloworld/helloworld.cpp b/examples/00-helloworld/helloworld.cpp index ff67d3138..1ba8c1caf 100644 --- a/examples/00-helloworld/helloworld.cpp +++ b/examples/00-helloworld/helloworld.cpp @@ -65,7 +65,7 @@ class ExampleHelloWorld : public entry::AppI bgfx::dbgTextPrintf(0, 1, 0x4f, "bgfx/examples/00-helloworld"); bgfx::dbgTextPrintf(0, 2, 0x6f, "Description: Initialization and debug text."); - bgfx::dbgTextPrintf(0, 4, 0x0f, "Color can be changed with ANSI \e[9;me\e[10;ms\e[11;mc\e[12;ma\e[13;mp\e[14;me\e[0m code too."); + bgfx::dbgTextPrintf(0, 4, 0x0f, "Color can be changed with ANSI \x1b[9;me\x1b[10;ms\x1b[11;mc\x1b[12;ma\x1b[13;mp\x1b[14;me\x1b[0m code too."); const bgfx::Stats* stats = bgfx::getStats(); bgfx::dbgTextPrintf(0, 6, 0x0f, "Backbuffer %dW x %dH in pixels, debug text %dW x %dH in characters." diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 969d2c0af..d431996e9 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -585,7 +585,7 @@ namespace bgfx for (uint32_t ii = 0, xx = _x; ii < num && xx < m_width; ++ii, ++xx) { char ch = temp[ii]; - if (BX_UNLIKELY(ch == '\e') ) + if (BX_UNLIKELY(ch == '\x1b') ) { char* ptr = &temp[ii+1]; attr = parseAttr(ptr, _attr);