Merge pull request #3723 from myk002/myk_terminal

clarify error message about the terminal
develop
Myk 2023-09-02 03:30:28 -07:00 committed by GitHub
commit c7b84a4b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

@ -1249,7 +1249,14 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, s
} }
else if (res == CR_NEEDS_CONSOLE) else if (res == CR_NEEDS_CONSOLE)
con.printerr("%s needs an interactive console to work.\n" con.printerr("%s needs an interactive console to work.\n"
"Please run this command from the DFHack terminal.\n", first.c_str()); "Please run this command from the DFHack terminal.\n\n"
#ifdef WIN32
"You can show the terminal with the 'show' command."
#else
"The terminal is accessible when you run DF from the commandline\n"
"via the './dfhack' script."
#endif
"\n", first.c_str());
return res; return res;
} }