Skip to content
Snippets Groups Projects
Commit 93dfc3ec authored by Esteban I. Ruiz Moreno's avatar Esteban I. Ruiz Moreno Committed by PilzAdam
Browse files

Add basic unicode support to the console (linux workaround)

parent 3e4f1462
Branches
Tags
No related merge requests found
......@@ -550,7 +550,13 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
}
else if(event.KeyInput.Char != 0 && !event.KeyInput.Control)
{
m_chat_backend->getPrompt().input(event.KeyInput.Char);
#if (defined(linux) || defined(__linux))
wchar_t wc = L'_';
mbtowc( &wc, (char *) &event.KeyInput.Char, sizeof(event.KeyInput.Char) );
m_chat_backend->getPrompt().input(wc);
#else
m_chat_backend->getPrompt().input(event.KeyInput.Char);
#endif
return true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment