Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!elroy.jpl.nasa.gov!zardoz.cpd.com!dhw68k!felix!dickson From: dickson@felix.UUCP (Pete Dickson) Newsgroups: comp.unix.shell Subject: How to put something on Status line Keywords: csh,status,VT100 Message-ID: <152961@felix.UUCP> Date: 31 Oct 90 22:38:41 GMT Sender: daemon@felix.UUCP Reply-To: dickson@felix.UUCP (Pete Dickson) Organization: FileNet Corp., Costa Mesa, CA Lines: 53 Ok....I've tried everything. I put this line into my .login file (and just about every imaginable c combination) echo '[1;24r[23;1H[7mYou are in ... '{pwd}'[0m' ^^^^^^^^^^^ ^^^ ^^^ | (rev video,ok) | | to print working directory to print on status line (doesn't work right) (doesn't work right) perhaps it's something to do with the vt100 configuration, BUT, the termcap lists a vt100-s-bot configuration which I have set. (for bottom status line) when I have that set, then a program like sysline WORKS. The result of the above mess is I get this message right before my regular prompt appears "You are in ... pwd" I also tried this, to see if I could just keep my working directory as part of the prompt itself. set prompt = '[7m[1m'{pwd}'\![0m-=->' the result (in rev video) pwd1-=-> or set prompt = '^[[7m^[[1m'${cwd}'\!^[[0m-=->' which results in (in rev video) d/dickson1-=-> Excellent! Just what I wanted, the only problem is, when I CHANGE directories, the prompt stays the same. I want it to show the directory I'm in! Please tell me you can help Mr. Wizard! Thanks! Pete Oh, BTW this is in csh -- ------------------------------------------------------------------------------- I WON'T sign! You can't make me! I won't, I WON'T!! ok here. dickson@felix.UUCP -------------------------------------------------------------------------------