|
|
@ -1692,6 +1692,8 @@ bool Core::Init()
|
|
|
|
if (is_headless)
|
|
|
|
if (is_headless)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef LINUX_BUILD
|
|
|
|
#ifdef LINUX_BUILD
|
|
|
|
|
|
|
|
if (is_text_mode)
|
|
|
|
|
|
|
|
{
|
|
|
|
auto endwin = (int(*)(void))dlsym(RTLD_DEFAULT, "endwin");
|
|
|
|
auto endwin = (int(*)(void))dlsym(RTLD_DEFAULT, "endwin");
|
|
|
|
if (endwin)
|
|
|
|
if (endwin)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1701,6 +1703,11 @@ bool Core::Init()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cerr << "endwin(): bind failed" << endl;
|
|
|
|
cerr << "endwin(): bind failed" << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
cerr << "Headless mode requires PRINT_MODE:TEXT" << endl;
|
|
|
|
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
cerr << "Headless mode not supported on Windows" << endl;
|
|
|
|
cerr << "Headless mode not supported on Windows" << endl;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|