{"id":57,"date":"2012-11-28T14:59:39","date_gmt":"2012-11-28T19:59:39","guid":{"rendered":"http:\/\/www.mbeckler.org\/blog\/?p=57"},"modified":"2013-05-31T16:19:31","modified_gmt":"2013-05-31T20:19:31","slug":"my-screenrc-file-circa-2012","status":"publish","type":"post","link":"https:\/\/www.mbeckler.org\/blog\/?p=57","title":{"rendered":"My .screenrc file, circa 2012"},"content":{"rendered":"<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Screen_(Unix)\">GNU Screen<\/a> is a really fantastic piece of software. Screen is a &#8220;terminal multiplexer&#8221;, that allows you to run and manage several terminal instances from a single terminal window. It&#8217;s sort of like how a graphical user interface lets you have multiple graphical application windows running at the same time, allowing you to switch between them at will. Screen is really great when working on a remote server over wifi or any unreliable network connection, as a dropped connection won&#8217;t kill off your jobs or close all your shells, you can simply reconnect to the screen instance when you reconnect.<\/p>\n<p>Screen allows you to add a &#8220;caption&#8221; bar at the bottom of the screen, that sort of acts like a taskbar in a graphical interface. The behavior of the caption bar is controlled by the .screenrc file, and here is what my .screenrc file looks like:<br \/>\n<code>defshell $SHELL<br \/>\ncaption always '%{= dg} %H %{G}| %{B}%l %{G}|%=%?%{d}%-w%?%{r}(%{d}%n %t%? {%u} %?%{r})%{d}%?%+w%?%=%{G}| %{B}%M %d %c:%s '<\/code><\/p>\n<p>Here is a screenshot of what it looks like:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"65\" data-permalink=\"https:\/\/www.mbeckler.org\/blog\/?attachment_id=65\" data-orig-file=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2012\/11\/screenrc.png\" data-orig-size=\"724,463\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"screenrc\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2012\/11\/screenrc.png\" src=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2012\/11\/screenrc.png\" alt=\"\" title=\"screenrc\" width=\"724\" height=\"463\" class=\"alignnone size-full wp-image-65\" srcset=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2012\/11\/screenrc.png 724w, https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2012\/11\/screenrc-300x191.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n<p>Basically, the bottom bar displays a bunch of information that you can remove from your prompt. On the left is the hostname (in case you are logged into multiple machines, you won&#8217;t get confused this way), then the system load values, and on the far right is the current date and time. The center of the bar is a &#8220;task bar&#8221; that shows the numbers and configurable names of all the sub-terminals you have in this screen session. (FYI, you can rename your screen session with Control-a A (capital A!), then backspace to remove the default name (usually the name of your shell) and it will update in the &#8220;task bar&#8221;.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GNU Screen is a really fantastic piece of software. Screen is a &#8220;terminal multiplexer&#8221;, that allows you to run and manage several terminal instances from a single terminal window. It&#8217;s sort of like how a graphical user interface lets you have multiple graphical application windows running at the same time, allowing you to switch between [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[10,32,8,7],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-open-source","tag-tools","tag-unix"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2BznB-V","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":4,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}