console-powers icon indicating copy to clipboard operation
console-powers copied to clipboard

Support for Node.js environment and fallback for printing colors in Terminal/Command prompt

Open astoilkov opened this issue 10 years ago • 4 comments

console.message should be installable through npm install console.message and should fallback to printing colors in the Terminal(Mac) and Command Prompt(Windows).

astoilkov avatar Jun 02 '15 03:06 astoilkov

+1

anupsaund avatar Jun 03 '15 07:06 anupsaund

+1

eddyystop avatar Jun 04 '15 14:06 eddyystop

How are you planning on printing colours within Command Prompt? Would you be relying on a third party library to allow ANSI control sequences within CMD?

jakewhiteley avatar Jun 09 '15 15:06 jakewhiteley

Hi @jakewhiteley,

Actually I could extract the logic from third party library and apply it in mine. The implementation for printing colors to the console is easy and straightforward. The only problem is to print the closest color. The CMD supports only limited number of colors and when you provide a custom color like #12345 this should be translated to its closest supported CMD color.

astoilkov avatar Jun 09 '15 17:06 astoilkov