Is it possible to display messages on-screen (similar to ATC call-outs) from a stand-alone WASM module?
Please take a moment to read the platform’s guidelines before you get started!
If you mean for debugging purposes, then any output to stdout or stderr shows up in the "Console" window of the Dev Mode. Each individual write to stderr shows up as one line (even if just a few characters not ended with a newline), so make sure to do some own buffering if necessary and write out complete lines that don't need to end with a newline (but will show up as a separate line anyway). As in:
// Output to std::cerr is unbuffered, and appears in the Console // window each part on a separate line. Not ideal. So collect // output to std::cerr into one string and write it in one go. std::stringstream output; output << THISAIRCRAFT ": The call '" << call << "' failed at line " << lineNumber; std::cerr << output.str() << std::flush;
4 People are following this question.