dtach or why I stopped using tmux
Ages ago I used gnu screen, then I started using tmux, tmux is a huge improvement over screen IMO, so much less bitchy. Anyways I recently got really frustrated by how tmux likes to like emulate things (like support all the things), thus making somethings in Weechat not look as pretty as they could on my mac with certain fonts that I use. I'm like WTF this problem only happens when in tmux or screen. But it looks perfect without all that stuff. So I asked in #weechat and I was like can't I have something that lets me attach and detach sessions but simply passes through my terminal so everything looks the same, no fighting with colors, character encoding, or line drawing. Its just gonna be the same.
So yep you can use dtach, sure it can't do lots of fancy stuff like tmux (afaik), but hell I never did fancy stuff with tmux, I didn't want to. I just wanted a fast way to attach and reattach to my IRC sessions on my remote server over ssh. Maybe I'll find some other limitations to dtach, maybe when I use weird non standard terminals or something to connect...idk, but so far its really perfect. (this also fixes some of those lines that get drawn as dashes in OS X terminal if you use tmux with any font but menlo)
So on Ubuntu I believe I just did apt-get install dtach
Now you can find plenty of guides on it, but basically how I use it is
dtach -c /tmp/dtach-wee1.sock weechat-curses
so replace weechat-curses with whatever program you want to be able to attach/detach. As for the name and location, can really use whatever you want I think? Use something you can make sense of :P especially if you have multiple sessions to keep track of.
dtach -a /tmp/dtach-wee1.sock
ps -fp $(pgrep -d, -x dtach)
^ thats the fancy way from the pgrep manpage or the easy to remember caveman way that I use is,
Oh oh Oh and remember you can always type