<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>.:: Marcos Dione/StyXman's glob ::. (Posts about screen)</title><link>https://www.grulic.org.ar/~mdione/glob/</link><description></description><atom:link href="https://www.grulic.org.ar/~mdione/glob/categories/screen.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="mailto:mdione@grulic.org.ar"&gt;Marcos Dione&lt;/a&gt; </copyright><lastBuildDate>Thu, 29 May 2025 15:42:58 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>screen to tmux</title><link>https://www.grulic.org.ar/~mdione/glob/posts/screen-to-tmux/</link><dc:creator>Marcos Dione</dc:creator><description>&lt;p&gt;I use &lt;code&gt;screen&lt;/code&gt; a lot, but not much of it. Given &lt;a href="https://lwn.net/Articles/1020901/"&gt;recent developments around several CVEs&lt;/a&gt;
I decided to try to learn the &lt;code&gt;tmux&lt;/code&gt; equivalent of what I use. Both have the concept of windows. Both allow
rebinding commands to keys, but these are the default bindings. tmux also has subcommands like &lt;code&gt;tmux ls&lt;/code&gt;. Both support
splitting the window; &lt;code&gt;screen&lt;/code&gt; calls the areas 'regions'; &lt;code&gt;tmux&lt;/code&gt; calls them &lt;code&gt;panels&lt;/code&gt;.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;&lt;code&gt;screen&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;tmux&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;list active sessions&lt;/td&gt;
&lt;td&gt;&lt;code&gt;screen -ls&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tmux ls&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;new named session&lt;/td&gt;
&lt;td&gt;&lt;code&gt;screen -dR foo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tmux -L foo&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reattach a session&lt;/td&gt;
&lt;td&gt;&lt;code&gt;screen -dR foo&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tmux -L foo attach&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;control key&lt;/td&gt;
&lt;td&gt;C-a&lt;/td&gt;
&lt;td&gt;C-b&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;detach&lt;/td&gt;
&lt;td&gt;d&lt;/td&gt;
&lt;td&gt;d&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;new window&lt;/td&gt;
&lt;td&gt;c&lt;/td&gt;
&lt;td&gt;c&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;next window&lt;/td&gt;
&lt;td&gt;n&lt;/td&gt;
&lt;td&gt;n&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;previous window&lt;/td&gt;
&lt;td&gt;p&lt;/td&gt;
&lt;td&gt;p&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;split horizontally&lt;/td&gt;
&lt;td&gt;S&lt;/td&gt;
&lt;td&gt;"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;split vertically&lt;/td&gt;
&lt;td&gt;|&lt;/td&gt;
&lt;td&gt;%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;go to next pane&lt;/td&gt;
&lt;td&gt;TAB&lt;/td&gt;
&lt;td&gt;o&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;rename session&lt;/td&gt;
&lt;td&gt;&lt;sup id="fnref:1"&gt;&lt;a class="footnote-ref" href="https://www.grulic.org.ar/~mdione/glob/posts/screen-to-tmux/#fn:1"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/td&gt;
&lt;td&gt;$&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div class="footnote"&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;sessions can't be renamed in &lt;code&gt;screen&lt;/code&gt;. &lt;a class="footnote-backref" href="https://www.grulic.org.ar/~mdione/glob/posts/screen-to-tmux/#fnref:1" title="Jump back to footnote 1 in the text"&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><category>screen</category><category>tmux</category><guid>https://www.grulic.org.ar/~mdione/glob/posts/screen-to-tmux/</guid><pubDate>Thu, 29 May 2025 09:36:33 GMT</pubDate></item></channel></rss>