Path: utzoo!attcan!uunet!mstan!chuck From: chuck@Morgan.COM (Chuck Ocheret) Newsgroups: comp.windows.x Subject: Re: changing titles Message-ID: <730@s5.Morgan.COM> Date: 15 Feb 90 15:38:06 GMT References: <9002141515.AA12728@battle.ESD.ORNL.GOV> <48619@lll-winken.LLNL.GOV> Reply-To: chuck@Morgan.COM (Chuck Ocheret) Organization: Morgan Stanley and Co., NY, NY Lines: 17 > ...And David's solution is full of special cases. Why don't you just put > the window title control string in you prompt and be done with it? ... I recently posted how to set up the ksh prompt to update the window title. However, I have discovered a problem with this that I hope someone can help me with. The size of the prompt string seen by ksh includes the entire escape sequence. Since I include ${CWD} in the title string, the string can get very long. How do I prevent ksh from thinking I only have a few characters positions left on my command line? Ksh starts shifting the line over when it thinks you are out of room. ~chuck -- +------------------+ Chuck Ocheret, Sr. Staff Engineer +-----------------+ | chuck@Morgan.COM | Morgan Stanley & Co., Inc. | (212) 703-4474 | | Duty now ... |19th Floor, 1251 Avenue of the Americas| for the future. | +------------------+ New York, N.Y. 10020 USA +-----------------+