Sponsored Content
Top Forums Shell Programming and Scripting tcsh/csh: set prompt in production to color red Post 302421393 by pseudocoder on Friday 14th of May 2010 08:42:03 AM
Old 05-14-2010
Try
Quote:
Originally Posted by slashdotweenie
Code:
set prompt = "%{\033[31;40m%}$user@`uname -n`:$cwd>%{\033[0m%} "

This User Gave Thanks to pseudocoder For This Post:
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

diff between tcsh and csh -f

Hello Am very new to linux/unix, workin in it since 10 days only. I had started with bash and now I need to work in tcsh. I have changed shell for my user profile using 'chsh' I use gedit for script writing. Now in the first line if I write #!/bin/tcsh i get d msg /home/usr/.cshrc: No such... (2 Replies)
Discussion started by: mahendrakamath
2 Replies

2. Shell Programming and Scripting

Unexpected end of file..with csh->tcsh

All; Thanks for reading. I'm having a heck of a time with this cshell script that fires off an hp temperature monitor and rotates logs. I keep getting '/opt/temperature/temp.sh: line 22: syntax error: unexpected end of file' when I try to 'sh /opt/temperature/temp.sh" it --script... (3 Replies)
Discussion started by: swjv
3 Replies

3. Shell Programming and Scripting

Differences between csh and tcsh

What are the differences between csh and tcsh shells ? In one of the shell scripts csh binary is a soft link to tcsh. (1 Reply)
Discussion started by: shafi2all
1 Replies

4. Shell Programming and Scripting

Is tcsh 100% compatible with the plain-old csh [on Solaris 9]

Hi folks There are about 200 csh scripts (I didn't wrote them). Do all those scripts run with tcsh without modification? Is tcsh 100% compatible with the plain-old csh? $ which csh /usr/bin/csh $ which tcsh /usr/bin/tcsh $ uname -a SunOS purzelse 5.9 Generic_117171-07 sun4u sparc... (2 Replies)
Discussion started by: slashdotweenie
2 Replies

5. UNIX for Dummies Questions & Answers

shell (tcsh) prompt gets reset on every cd

Hi, I type in my shell: set prompt="(%M) %c%b%# " to get something like: a/b/c> this works, but only partially. every time I move to to a different directory (i.e. 'cd <some dir>'), the prompt is reset. Meaning, when I 'echo $prompt' after setting the prompt I get the correct prompt,... (8 Replies)
Discussion started by: yuvalbn
8 Replies

6. UNIX for Dummies Questions & Answers

issue with my prompt on tcsh

Hi, issue with my prompt, other gets their name, my comes with command number. Why? {118} /home/markb > echo $SHELL /bin/tcsh {119} /home/markb > echo $SHELL /bin/tcsh {120} /home/markb > my .cshrc has this.... set prompt="%{\0330;%n@%M : %~%L \007%} `pwd` >%{\033 ... (3 Replies)
Discussion started by: samnyc
3 Replies

7. Shell Programming and Scripting

how to prompt the user to enter an array in tcsh

Hello, I am writing a script that requires the user to enter a string of numbers: ex: 134 345 865 903 This command only allows for one variable to be entered: set "var" = $< and than once I got the array I want to change it to a list with each input on a different line: ... (1 Reply)
Discussion started by: smarones
1 Replies

8. UNIX for Dummies Questions & Answers

How to change color when doing echo in tcsh?

Is it possible to change the color when doing an echo? Example, having the following command print in dark blue. echo "Hello" ---------- Post updated at 11:50 AM ---------- Previous update was at 10:25 AM ---------- Just figured out how to do it (2 Replies)
Discussion started by: kristinu
2 Replies
XHPAcknowledge(3X)														XHPAcknowledge(3X)

NAME
XHPAcknowledge - Send an Acknowledge to an extended input device. SYNOPSIS
#include <X11/XHPlib.h> int XHPAcknowledge (display, deviceid, acknowledge) Display *display; XID deviceid; int acknowledge; ARGUMENTS
display Specifies the connection to the X server. deviceid Specifies the ID of the desired device. acknowledge Specifies the acknowledge to be sent. Valid values are: GENERAL_ACKNOWLEDGE, ACKNOWLEDGE_1, ACKNOWLEDGE_2, ACKNOWLEDGE_3, ACKNOWLEDGE_4, ACKNOWLEDGE_5, ACKNOWLEDGE_6, ACKNOWLEDGE_7. DESCRIPTION
This request is part of an HP-proprietary extension to X. Its functionality has been superseded by the standard XChangeFeedbackControl request. You should use XChangeFeedbackControl instead of XHPAcknowledge if possible. This request sends an acknowledge to an input device. This allows a previously received prompt to be turned off. A prompt is an audio or visual indication that the program controlling the input device is ready for input. The LED on an HP46086A buttonbox is an example of a prompt. A program may indicate its status by turning on a prompt on the appropriate input device. Not all input devices support prompts and acknowledges. Any device that does support a particular prompt will also support the corresponding acknowledge. To determine whether an input device supports a particular prompt and acknowledge, the io_byte field of the XHPDeviceList structure should be examined. The format of this structure is described in the documentation for the XHPListInputDevices request. RETURN VALUE
none DIAGNOSTICS
BadDevice An invalid device ID was specified. BadValue An invalid acknowledge was specified. FILES
/usr/include/X11/XHPlib.h ORIGIN
Hewlett-Packard Company SEE ALSO
XHPListInputDevices(3x) XHPPrompt(3x) X Version 11 Release 5 XHPAcknowledge(3X)
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy