Hi List.
I have a script that produce output to the standard terminal (a shell window in Linux).
For example:
<Shell>Script.sh...
Running...
Succses...
Success...
Failure...
Failure...
<Shell>


My intention is to generate this output in different colors (For example: Red for Failure and Green for Success.).
Now... I learned that I Can do so by executing the command
'echo ^[[60G^[[0;39m[^[[1;31mFAILED^[[0;39m]'



But... I want to understand exactly what happens and also to find out if this is the best and most elegant solution.
I would appreciate a nice solution but also a direction to some written man that describe it.
BAsically, I want to understand how this is done in the technical level (I mean who is responsible the OS or the Shell) so that my code could be run on different distributions of the same OS or different shells.


Thanks,
Amit.



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to