Hello, After sourcing .profile file inside X with .Xdefaults, the PS1 and xterm title settings were run. (It runs .profile once and sets the PS1 variable to be used inside X)
But the issue of dynamic xterm title remains as such. It seems the PS1 (in ksh) is not able to pass the special character the way writer intended hence not producing desired consequences. Can someone tell why setting of PS1 in this way is not producing desired behavior? (desired: dynamic xterm title which changes as i change directories etc.). As suggested here: http://tldp.org/HOWTO/Xterm-Title-4.html $ PS1='\033]0;[EMAIL PROTECTED]: ${PWD##${HOME}/}\007$ ' K]0;[EMAIL PROTECTED]: /home/badeguruji7$ ^ ^ supposed to be Bell character (producing '-') supposed to be Esc character Thank you. -BG ________________________________ ~~Kalyan-mastu~~ ----- Original Message ---- From: Ben Calvert <[EMAIL PROTECTED]> To: badeguruji <[EMAIL PROTECTED]> Sent: Tuesday, December 18, 2007 5:36:24 PM Subject: Re: prob: dynamic xterm window and icon titles [OpenBSD 4.2] On Dec 18, 2007, at 12:55 PM, badeguruji wrote: > hello, > > following code is not working from my .profile (so i commented it), > even when i start the system with X. I am using system provided > fvwm. when i > start without X, it sets the PS1 variable correctly, but even that > is lost (to > standard $ prompt) once i start X. http://openbsd.org/faq/faq8.html#ksh > > > I want to have my xterm window title to > reflect: pwd, hostname and user_id dynamically. I am using ksh. i think you'll find, that in general, the faq is pretty thorough. you can generally save lots of time by looking there first. > > > thank you. > -BG Ben

