Fix console.* calls on Windows
- Calls for console.* on browser process are printed with no need for --enable-logging - The output is without the logging prefix - The cursor in the terminal is always after the last output - The first output starts on a new line and not at the prompt - console.* from renderer are not printed to cmd - Added a missing '\n' in the default_app help output
This commit is contained in:
parent
e682dc7544
commit
1896deb10e
4 changed files with 8 additions and 3 deletions
|
@ -5,6 +5,7 @@
|
|||
#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"
|
||||
|
@ -29,6 +30,9 @@ AtomMainDelegate::~AtomMainDelegate() {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue