codeapp icon indicating copy to clipboard operation
codeapp copied to clipboard

Terminal Colors do not function in output terminal

Open arch-linux opened this issue 3 years ago • 2 comments

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

image

Code: `const colors = require("colors"); try{ console.log("Test".green);

} catch (error){ console.log(error);

}`

arch-linux avatar Jun 27 '21 08:06 arch-linux

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.

luni-moon avatar Jun 04 '22 22:06 luni-moon

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.

bummoblizard avatar Jun 04 '22 23:06 bummoblizard