Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!metaphor!Yosemite!arends From: arends@Yosemite.metaphor.com (Dale M. Arends) Newsgroups: comp.windows.x Subject: Re: how can I change the title in the title bar Keywords: Window Titles Message-ID: <1995@metaphor.Metaphor.COM> Date: 18 Jan 91 16:28:58 GMT References: <2996@ux.acs.umn.edu> Sender: news@metaphor.Metaphor.COM Reply-To: arends@Yosemite.metaphor.com (Dale M. Arends) Followup-To: comp.windows.x Organization: Metaphor Computer Systems, Mountain View, CA Lines: 36 In article <2996@ux.acs.umn.edu> mark@cda.mrs.umn.edu (Mark Van Overbeke) writes: > >Windowers: > > I would like to be able to change the title in the title bar on an >xterm window under X11R4. I haven't done much with X yet so am not very >familiar with capabilities. I know I can set it with -title when the >xterm is created. Is it possible to change that value later on to >something else? If so, how do I do this? Thanks. > >Mark Van Overbeke Systems Software Programmer >Behmler Hall, Room 10C (612) 589-2211 ext. 6378 >E. 4th Street and College Ave. BITNET: Mark@UMNMOR.BITNET >University of Minnesota, Morris INTERNET: Mark@caa.mrs.umn.edu >Morris, MN 56267 mark@cda.mrs.umn.edu Someone else uploaded a short C program to do this. I achieve the same results with a short shell command. echo -n "^[]2;^G" where the ^[ is an ESC character and the ^G is a Control-G. The can be whatever you want. I use this script as part of my alias for the shell's cd command so my window title always shows the current directory. Also, if you use a 1 instead of a 2, the will appear in the window's entry in the IconManager. Dale ----------------------------------------------------------------------------- Dale M. Arends arends@Yosemite.Metaphor.com Metaphor Computer Systems, Inc. ...!{apple|decwrl}!metaphor!yosemite!arends Any opinions expressed herein are my own and not those of my employer. They probably aren't interested and maybe don't agree and therefore ...