use wprintw instead of waddwstr to print wide strings
This commit is contained in:
@@ -382,7 +382,7 @@ void Window::Write(int limit, const wstring &str, bool clrtoeol)
|
|||||||
|
|
||||||
if (!collect && !color.empty())
|
if (!collect && !color.empty())
|
||||||
{
|
{
|
||||||
waddwstr(itsWindow,tmp.c_str());
|
wprintw(itsWindow, "%ls", tmp.c_str());
|
||||||
tmp.clear();
|
tmp.clear();
|
||||||
|
|
||||||
if (isdigit(color[2]))
|
if (isdigit(color[2]))
|
||||||
@@ -406,10 +406,10 @@ void Window::Write(int limit, const wstring &str, bool clrtoeol)
|
|||||||
color.clear();
|
color.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!tmp.empty()) waddwstr(itsWindow,tmp.c_str());
|
if (!tmp.empty()) wprintw(itsWindow, "%ls", tmp.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
waddwstr(itsWindow,str.c_str());
|
wprintw(itsWindow, "%ls", str.c_str());
|
||||||
|
|
||||||
if (clrtoeol)
|
if (clrtoeol)
|
||||||
wclrtoeol(itsWindow);
|
wclrtoeol(itsWindow);
|
||||||
|
|||||||
Reference in New Issue
Block a user