saisandeepvaddi / ten-hands

⚡ Simplest way to organize and run command-line tasks
https://tenhands.app/
MIT License
371 stars 28 forks source link

[FEATURE REQUEST] Add support for coloured output #100

Open cocowalla opened 4 years ago

cocowalla commented 4 years ago

Is your feature request related to a problem? Please describe. Many command line tools emit coloured text, for example to highlight error messages. At present, at least on Windows Ten Hands displays all text in the same colour.

Describe the solution you'd like I'd like Ten Hands to display coloured output, such that it displays the same as in the standard Windows console host, conemu etc

saisandeepvaddi commented 4 years ago

Ten Hands does support colored output. But yes, I did observe not all cases as any regular terminal like CMD.exe or other terminal emulators support.

image

Basically, im thinking it is to do with ten hands not running tasks in a pseudoterminal instead it runs task in a child process and sends output to xterm.js. So, if xterm is not displaying, im not sure if I can do something.

I don't want to add pseudoterminal as it seems a costly process basically fully opening terminals. Ten Hands scope is supposed to be for those tasks where you can click and don't need to keep looking at output. Kind of build tasks for example.

I'm gonna check with xterm.js folks to see if I can fix this.