<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Fun with screen / commentary</title>
  <link href="http://platypope.org/blog/posts/18/comments" rel="self"/>
  <link href="http://platypope.org/blog/2007/3/10/fun-with-screen" rel="alternate"/>
  <id>urn:uuid:0e7e3124-cf21-11db-bb95-00163e5b4df7</id>
  <updated>2007-06-04T22:06:07-04:00</updated>
  <author>
    <name>Various commentators</name>
  </author>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment81" rel="alternate"/>
    <id>urn:uuid:52b1e828-1309-11dc-bb4d-aa008bfedbfd</id>
    <updated>2007-06-04T22:06:07-04:00</updated>
    <author>
      <name>mmmarilyn</name>
    </author>
    <content type="html">
&lt;p&gt;I'm not sure I follow enough of the .screenrc wackery to know what of this you have or may have interest in, but somewhere along the way I picked up a great line:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#change the     hardstatus settings to give an window list at the bottom of the
#screen, with the server name, time and date and with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
&lt;/code&gt;&lt;/pre&gt;    </content>
  </entry>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment82" rel="alternate"/>
    <id>urn:uuid:9a641dc6-1309-11dc-bb4d-aa008bfedbfd</id>
    <updated>2007-06-04T22:08:08-04:00</updated>
    <author>
      <name>mmmarilyn</name>
    </author>
    <content type="html">
&lt;p&gt;Hm, maybe I should've read the markdown link before posting code.&lt;/p&gt;

&lt;p&gt;The huge text is that which was commented out; I'm super savvy.&lt;/p&gt;    </content>
  </entry>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment83" rel="alternate"/>
    <id>urn:uuid:7982c70c-137b-11dc-bb4d-aa008bfedbfd</id>
    <updated>2007-06-05T11:43:15-04:00</updated>
    <author>
      <name>llasram</name>
    </author>
    <content type="html">
&lt;p&gt;I really need to add comment preview one of these days...  Fixed, with the horrifically long line indicating that I also need to work on my CSS stylesheet.  Oh, and nice to see you, Marilyn. :-)&lt;/p&gt;    </content>
  </entry>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment123" rel="alternate"/>
    <id>urn:uuid:3d79933a-7622-11dc-9692-aa008bfedbfd</id>
    <updated>2007-10-09T00:43:54-04:00</updated>
    <author>
      <name>skks</name>
    </author>
    <content type="html">
&lt;p&gt;I was looking for this trick to add hostname to the screen name - thanks a lot.&lt;/p&gt;    </content>
  </entry>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment126" rel="alternate"/>
    <id>urn:uuid:399b4cca-7db3-11dc-9692-aa008bfedbfd</id>
    <updated>2007-10-18T15:49:23-04:00</updated>
    <author>
      <name>Seth</name>
    </author>
    <content type="html">
&lt;p&gt;Thanks for this great tip.&lt;/p&gt;

&lt;p&gt;Have you noticed that your command begins overwriting the prompt and not go to the next line if you type off the right edge of the screen after setting this up?  &lt;/p&gt;

&lt;p&gt;Any idea how to get around it?&lt;/p&gt;    </content>
  </entry>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment127" rel="alternate"/>
    <id>urn:uuid:9cec9d44-7dcf-11dc-9692-aa008bfedbfd</id>
    <updated>2007-10-18T19:12:35-04:00</updated>
    <author>
      <name>llasram</name>
    </author>
    <content type="html">
&lt;p&gt;@Seth -- Actually, a buddy of mine noticed that when he tried to set this up too.  We eventually figured out that I wasn't seeing it because my prompt is multi-line, like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[llasram@seneca]=[i686-pc-linux-gnu]
[Thu Oct 18 19:09:49]=[ls]
[3]=[~/.rcfiles/basic/bashrc.d]
$
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If this is just too hardcore for you :-), my friend managed to sort it out by futzing with his TERM settings, although I'll need to ping him again to retrieve the details.&lt;/p&gt;    </content>
  </entry>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment128" rel="alternate"/>
    <id>urn:uuid:2639e090-7de7-11dc-9692-aa008bfedbfd</id>
    <updated>2007-10-18T22:01:04-04:00</updated>
    <author>
      <name>Seth</name>
    </author>
    <content type="html">
&lt;p&gt;Heh...that is quite the EXTREME(tm) prompt.&lt;/p&gt;

&lt;p&gt;I should probably move to a multi-line prompt.  I've been hanging around in some buried directories too much lately.&lt;/p&gt;

&lt;p&gt;But if it's not too much a problem, I'd love to see how it's fixed via TERM settings. Otherwise, I can dig around on my own.&lt;/p&gt;

&lt;p&gt;BTW, nice emacs/rails screencast.  I'm sure you hear that a lot.&lt;/p&gt;    </content>
  </entry>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment129" rel="alternate"/>
    <id>urn:uuid:d2da7924-7e4e-11dc-9692-aa008bfedbfd</id>
    <updated>2007-10-19T10:23:12-04:00</updated>
    <author>
      <name>llasram </name>
    </author>
    <content type="html">
&lt;p&gt;@Seth -- Actually, my memory was totally off.      The solution is to wrap the non-printing parts of the prompt in the \[ and \] sequences which inform bash that part of the prompt contains non-printing characters.  E.g.:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;PS1='\[\033[s\033k\033\134\]@\h\n\[\033[u\]\u \w \$ '
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Depending on the length of your hostnames, you might want to try sticking the 'clear current line' terminal escape sequence in there too.&lt;/p&gt;

&lt;p&gt;Hope that helps, and thanks about the screencast!&lt;/p&gt;    </content>
  </entry>
  <entry>
    <title>Comment on "Fun with screen"</title>
    <link href="http://platypope.org/blog/2007/3/10/fun-with-screen#comment130" rel="alternate"/>
    <id>urn:uuid:805baf94-7e56-11dc-9692-aa008bfedbfd</id>
    <updated>2007-10-19T11:18:10-04:00</updated>
    <author>
      <name>llasram</name>
    </author>
    <content type="html">
&lt;p&gt;Of course, it also helps if I include an example based on the technique I described instead of the save/restore cursor position escape sequences:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;PS1='\[\033k\033\134\]@\h\n\[\033[1A\]\u \w \$ '
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Lots of options.&lt;/p&gt;    </content>
  </entry>
</feed>
