Hi
I'd like to print color text and I've tried this:
echo "\033[0;31mHI\033[m"
but it didn't woked. When I changed 0 --> 1/4/5, the text "HI" --> bold/underline/blink, but when I changed 31 or 33 to other values, the color didn't change.
---------- Post updated at 01:12 PM ---------- Previous update was at 01:08 PM ----------
The problem is your terminal. What you want to do, works well on any ANSI-capable terminal. E.g. in my xterm it works. But if you have some dumb terminal, or dtterm (I think - didn't check) this ANSI sequence will not work. If you want to use portable sequences, you have to consult termcap database, what it can provide to you, using infocmp and you can use tput command to make text bold, underline and so on.
can you please tell me how did you solve this issue with mobaxterm? I have also installed mobaxterm but I dont know how to change the colours of the terminal.
I didn't do anything with mobaxterm, just installed and used.
In securecrt, I changed terminal from vt100 --> xterm ( Option / Session Option / Emulation ) and enable the ANSI color option