Re: colors in messages
What sort of messages??? you can use vt terminal encoding to make things change colour/flash, or for email, use html and if the MUA copes with HTML you'll get colours. -- martin On 5/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I would like to introduce color into my messages, particularly to the background. How can I do this? Is there a sequence of characters that I can put into a message that will change the background of the rest of the message (or until a similar sequence is encountered) to the color designated by this sequence, and if so, what is the color/sequence relationship? Similarly for foreground (i.e., the characters) color. uname -a FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: colors in messages
On Fri, May 19, 2006 02:22 AM Martin Hepworth wrote: What sort of messages??? you can use vt terminal encoding to make things change colour/flash, or for email, use html and if the MUA copes with HTML you'll get colours. Since I'm asking about FreeBSD (version 4.3), I'm asking about the echo , print , printf , etc. commands, and similar commands ib PERL , awk , etc. Where can I find the vt terminal encoding for this (hopefully on the internet)? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: colors in messages
[EMAIL PROTECTED] wrote: Since I'm asking about FreeBSD (version 4.3), I'm asking about the echo , print , printf , etc. commands, and similar commands ib PERL , awk , etc. Where can I find the vt terminal encoding for this (hopefully on the internet)? Hi a simple googlin' for vt100 color codes brings this as first hit: tp://www.termsys.demon.co.uk/vtansi.htm you can change colors by the escape sequences shown in the link resource. for example to get red text use: echo ^[[31m you can get the escape character by pressing Ctrl-V followed by escape in bash and vi and i suppose other environments ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: colors in messages
On Sat, 20 May 2006 00:33:58 +0200 Mathias Menzel-Nielsen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Since I'm asking about FreeBSD (version 4.3), I'm asking about the echo , print , printf , etc. commands, and similar commands ib PERL , awk , etc. Where can I find the vt terminal encoding for this (hopefully on the internet)? Hi a simple googlin' for vt100 color codes brings this as first hit: tp://www.termsys.demon.co.uk/vtansi.htm you can change colors by the escape sequences shown in the link resource. for example to get red text use: echo ^[[31m you can get the escape character by pressing Ctrl-V followed by escape in bash and vi and i suppose other environments A bit off-topic but I found this reference quite handy when experimenting with colors in scripts: http://www.tldp.org/linuxfocus/English/May2004/article335.shtml HTH, Randy -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
colors in messages
I would like to introduce color into my messages, particularly to the background. How can I do this? Is there a sequence of characters that I can put into a message that will change the background of the rest of the message (or until a similar sequence is encountered) to the color designated by this sequence, and if so, what is the color/sequence relationship? Similarly for foreground (i.e., the characters) color. uname -a FreeBSD 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]