codeapp
codeapp copied to clipboard
Terminal Colors do not function in output terminal
I have noticed that when using Node.JS and attempting to utilize colors within it, the terminal removes the color from the output.
My scenario:
- Module named "Colors" from NPM
- console.log("Test".green)
Output:
Results in the output of Test uncolorized
Code: `const colors = require("colors"); try{ console.log("Test".green);
} catch (error){ console.log(error);
}`
You may need to set your NODEJS environment variable in the panel, like so:
FORCE_COLOR=true
This has to be done every time the app is opened, possibly every time you open the panel.
You may need to set your NODEJS environment variable in the panel, like so:
FORCE_COLOR=true
This has to be done every time the app is opened, possibly every time you open the panel.
Thank you for sharing! I will make it possible to configure custom environment variables.