This might only work for tcsh, but I have this in my /etc/csh.cshrc:
...which sets a color prompt. This is how it works:
The %{...%} stuff seems necessary to print raw escape characters, otherwise it prints ^[ instead of ESC. So this ends up printing the escape sequence for high-intensity blue.
This works only in the prompt variable though. To get a raw ESC somewhere else you have to printf it, you can't echo it.
The first bit sets it blue, the second bit resets it to defaults. See ASCII Table - ANSI Escape sequences for possible numbers for the 'set graphics mode' command, you can string them in a line like "0;1;34" for "reset defaults", "high intensity", "blue". Add the head and tail and you get \033[0;1;34m
Hi,
I am trying to write a script which will email a backup report from the server,
The contents of the email will be:
---------------------- ---- -- ---- ----- ---- ------- ---- ------- -------
| | | | |Chnge|Wkng| | | | |
| ... (6 Replies)
Hello,
I have a problem with my putty session when i use the vi editor or when i do dbaccess on an Informix database.
Suddenly the background and foreground colour of my terminal change and it makes it difficult for me to see whats on the screen.
Why this is happening? Is there a way to keep... (2 Replies)
Hello all,
I need to change a number in a file by adding some residuals respectively
To make it clear,
I need to add 0.11 to the number between 24-28 (which is below the SECON) for all the lines starting with FRR1
or I need to add 0.13 to the number between 24-28 (which is below the... (9 Replies)
hi
My problem now is that if shipping options as -o length = 88
it says the following:
# lp -o length=88 -dhp4015 /etc/hosts
UX:lp: ERROR: The following options can't be handled:
-o length=
TO FIX: The printer(s) that otherwise qualify
for printing your request can't handle
one or more of... (2 Replies)
Hi
I want to change the color of the email content sent through unix. I tried a lot and left in vain. I heard that it could be done by sending the email as HTML. But I don't how to do it. Can you all share your ideas?
~sakthifire (1 Reply)
I am very new at programming and this is probably an easy question, but I am desperate. I need to change this low level code into a C program that I can run so I can print out every "A" that appears with the fork() command. You help is greatly appreciated.
PRINT A
p=fork()
if( p == 0) {... (0 Replies)
Dear All,
We have following code to send mails from unix to users. We want to see few sentences of mail in bold font or to hightlight few lines in different colours. Could you please let me know how can we do it in function construct_body.
... (3 Replies)
Hi all,
I have written one script. If i run the script, particular text in that script needs to be displayed in color.how this could be done?any commands r there to change the colour of the text while running the script?
Ur help is appreciated !!!
Thanx in Advance,
Sona. (7 Replies)