#include "atom/app/atom_main_delegate.h"
#include <string>
+#include <iostream>
#include "atom/app/atom_content_client.h"
#include "atom/browser/atom_browser_client.h"
bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {
logging::LoggingSettings settings;
#if defined(OS_WIN)
+ // On Windows the terminal returns immediately, so we add a new line to
+ // prevent output in the same line as the prompt.
+ std::wcout << std::endl;
#if defined(DEBUG)
// Print logging to debug.log on Windows
settings.logging_dest = logging::LOG_TO_ALL;
helpMessage += "A path to an Electron application may be specified. The path must be to \n";
helpMessage += "an index.js file or to a folder containing a package.json or index.js file.\n\n";
helpMessage += "Options:\n";
- helpMessage += " -r, --require Module to preload (option can be repeated)";
+ helpMessage += " -r, --require Module to preload (option can be repeated)\n";
helpMessage += " -h, --help Print this usage message.\n";
helpMessage += " -v, --version Print the version.";
console.log(helpMessage);
# Redirect node's console to use our own implementations, since node can not
# handle console output when running as GUI program.
print = (args...) ->
- process.log util.format(args...)
+ process.log util.format(args...) + "\n"
console.log = console.error = console.warn = print
process.stdout.write = process.stderr.write = print
#include <algorithm>
#include <string>
+#include <iostream>
#include "atom/common/atom_version.h"
#include "atom/common/chrome_version.h"
}
void Log(const base::string16& message) {
- logging::LogMessage("CONSOLE", 0, 0).stream() << message;
+ std::wcout << message;
}
} // namespace