Skip to content

Commit

Permalink
Don't print ASCII art when using ncurses
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Oct 9, 2023
1 parent 11ec75c commit b270c2b
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/server.cpp
Expand Up @@ -540,13 +540,22 @@ void Server::start()
m_thread->start();

// ASCII art for the win!
std::cerr
<< " __. __. __. " << std::endl
<< " _____ |__| ____ _____ / |_ _____ _____ / |_ " << std::endl
<< " / \\| |/ \\ / __ \\ _\\/ __ \\/ __> _\\" << std::endl
<< "| Y Y \\ | | \\ ___/| | | ___/\\___ \\| | " << std::endl
<< "|__|_| / |___| /\\______> | \\______>_____/| | " << std::endl
<< " \\/ \\/ \\/ \\/ \\/ " << std::endl;
const char *art[] = {
" __. __. __. ",
" _____ |__| ____ _____ / |_ _____ _____ / |_ ",
" / \\| |/ \\ / __ \\ _\\/ __ \\/ __> _\\",
"| Y Y \\ | | \\ ___/| | | ___/\\___ \\| | ",
"|__|_| / |___| /\\______> | \\______>_____/| | ",
" \\/ \\/ \\/ \\/ \\/ "
};

if (!m_admin_chat) {
// we're not printing to rawstream to avoid it showing up in the logs.
// however it would then mess up the ncurses terminal (m_admin_chat),
// so we skip it in that case.
for (auto line : art)
std::cerr << line << std::endl;
}
actionstream << "World at [" << m_path_world << "]" << std::endl;
actionstream << "Server for gameid=\"" << m_gamespec.id
<< "\" listening on ";
Expand Down

0 comments on commit b270c2b

Please sign in to comment.