From 303f2371b4801f131830311230d9962d63e74a4f Mon Sep 17 00:00:00 2001 From: RadAd Date: Mon, 27 May 2019 14:07:56 +1000 Subject: ansi fixes --- RadTerminal.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'RadTerminal.cpp') diff --git a/RadTerminal.cpp b/RadTerminal.cpp index 2e6e2c7..dec0b31 100644 --- a/RadTerminal.cpp +++ b/RadTerminal.cpp @@ -562,9 +562,13 @@ BOOL RadTerminalWindowOnCreate(HWND hWnd, LPCREATESTRUCT lpCreateStruct) tsm_vte_set_osc_cb(data->vte, tsm_vte_osc, hWnd); if (rtc->strScheme != nullptr) { +#ifdef _UNICODE char scheme[1024]; WideCharToMultiByte(CP_UTF8, 0, rtc->strScheme, -1, scheme, ARRAYSIZE(scheme), nullptr, nullptr); e = tsm_vte_set_palette(data->vte, scheme); +#else + e = tsm_vte_set_palette(data->vte, rtc->strScheme); +#endif } for (int b = 0; b < 2; ++b) -- cgit v1.2.3