meejah<p>Terminals, pseudoterminals, PTYs, oh my.</p><p>How does e.g. "tmux" do its "switch screen" stuff, and can I do it with <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> + Rich? I've found "pymux", which appears to be emulating vt100 in Python ... and then I guess re-rendering to the "real" screen? Is that what <a href="https://mastodon.social/tags/tmux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tmux</span></a> does (too much C for me to grok)?</p><p>There's also <a href="https://jvns.ca/blog/2025/06/24/new-zine--the-secret-rules-of-the-terminal/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jvns.ca/blog/2025/06/24/new-zi</span><span class="invisible">ne--the-secret-rules-of-the-terminal/</span></a> from <span class="h-card" translate="no"><a href="https://social.jvns.ca/@b0rk" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>b0rk</span></a></span> which is great</p>