<HTML ><HEAD ><TITLE >Xterm Title Bars and Screen</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Bash Prompt HOWTO" HREF="index.html"><LINK REL="UP" TITLE="ANSI Escape Sequences: Colours and Cursor Movement" HREF="c327.html"><LINK REL="PREVIOUS" TITLE="Xterm Title Bar Manipulations" HREF="xterm-title-bar-manipulations.html"><LINK REL="NEXT" TITLE="Colours and Cursor Movement With tput" HREF="x405.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Bash Prompt HOWTO: </TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="xterm-title-bar-manipulations.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 6. ANSI Escape Sequences: Colours and Cursor Movement</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x405.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN395" ></A >6.4. Xterm Title Bars and Screen</H1 ><P >Non-screen users should skip this section. Of course, screen is an awesome program and what you should really do is rush out and find out what screen is - if you've read this far in the HOWTO, you're enough of a Command Line Interface Junkie that you need to know. </P ><P >If you use screen in Xterms and you want to manipulate the title bar, your life may just have become a bit more complicated ... Screen can, but doesn't automatically, treat the Xterm title bar as a hardstatus line (whatever that means, but it's where we put our Xterm title). If you're a RedHat user, you'll probably find the following line in your <TT CLASS="FILENAME" >~/.screenrc</TT >: </P ><TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" > termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'</PRE ></FONT ></TD ></TR ></TABLE ><P >If that line isn't in there, you should put it in. This allows the titlebar manipulations in the previous section to work under Xterm. But I found they failed when I used rxvt. I e-mailed a question about this to the screen maintainers, and Michael Schroeder (one of those good people labouring behind the scenes to make free Unix/Linux software as great as it is) told me to add the following to my <TT CLASS="FILENAME" >~/.screenrc</TT >: </P ><TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" > termcapinfo rxvt 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'</PRE ></FONT ></TD ></TR ></TABLE ><P >I don't know if this will work for other Xterm variants, but since the two lines are functionally identical except for the name of the Xterm type, perhaps ... I leave this as an exercise for the reader. It did fix my problem, although I haven't researched further to see if it interferes with the icon-titlebar naming distinction. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="xterm-title-bar-manipulations.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x405.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Xterm Title Bar Manipulations</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c327.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Colours and Cursor Movement With <B CLASS="COMMAND" >tput</B ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >