Console window after built #960
Replies: 7 comments
-
Any update here? |
Beta Was this translation helpful? Give feedback.
-
You can run the program in a terminal (linux / mac) or powershell (windows) |
Beta Was this translation helpful? Give feedback.
-
I would like to implement a button that shows/hide the console as it will contains important output. Any way of doing this? |
Beta Was this translation helpful? Give feedback.
-
I made a solution for you. Here's a module you can just add to your project as ConsoleWindow.js in your src folder.
To use it, simply make a function that replaces all your console.log. Here's an example:
|
Beta Was this translation helpful? Give feedback.
-
Thank you @nurdyAuv! I will give it a try and let you know. |
Beta Was this translation helpful? Give feedback.
-
Thanks @nurdyAuv for the suggestion. Unfortunately, this is not a real console, but a QTextBrowser, which is fine. However the bash colors that would normally print fine in the console are printed as text
It looks so, in a I guess the only way is to parse the output and create the appropriate HTML. Is there no other way to bring the console window? |
Beta Was this translation helpful? Give feedback.
-
The only other way I can think of, is you wrap your whole program in another program so you can read the child process's stdout. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to have a console window open in the app after it is built, like when u run it with
npm start
?Beta Was this translation helpful? Give feedback.
All reactions