cwd


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers cwd
# 1  
Old 01-19-2003
cwd

Hello !
How can I see my current working directory on the bar of my "dtterm" window (I use CDE).
any ideas ?

thnx,
GISMO
# 2  
Old 01-21-2003
To change it dynamically, you would have to alias your cd command to run a script which would do the change directory AND change the title of the terminal window.

To change the title dynamically you need to use escape sequences, see
dtterm(5). The escape sequence is <ESC><]><l><your text><ESC><\>

Note, the <> characters are produced for clarity only, they do not
appear in the sequence itself.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

#$ -cwd #what does this mean?

When I want to specify the current working directory (-cwd) why do I need a # followed by a $? What does the combo of #$ do? Thanks. (1 Reply)
Discussion started by: rebazon
1 Replies

2. Shell Programming and Scripting

CWD in prompt only showing the directory when set

Hi Gurus, I am working in tcsh and i set the prompt with this. set prompt = "$cwd>" But I see teh prompt only gets reflected with the directory where I set the prompt. After i cd to another directory it still shows the old directory. Please advise (1 Reply)
Discussion started by: kinny
1 Replies

3. UNIX for Dummies Questions & Answers

implemenation of cwd()

i'm writing my own shell and implementing a few unix commands. I'm using the readline() for input and strtk() to tokenize it. I need to implement the cwd command as an option in the shell.. Here's the layout : while true do Read a line of input using readline() tokenize the input switch... (1 Reply)
Discussion started by: noobie
1 Replies

4. UNIX for Dummies Questions & Answers

CWD as Prompt

I need a one line command called cd (must also still function as cd) and will allow the prompt to change to the cwd. All I can figure out is to change the .cshrc but there must be an easier way in a one line command no? (1 Reply)
Discussion started by: petter_uk
1 Replies
Login or Register to Ask a Question