I quite like tmux and Aquamacs. I've recently been interested in how to integrate the two together. As far as I know, one cannot run Aquamacs within a terminal even with the Aquamacs CLI tool, so the next natural option is to run tmux in Aquamacs via something like Emacs' shell mode. Unfortunately, I've been running into some bottlenecks in doing this. Namely, running tmux from shell mode throws an error:
$ tmux attach -t 0 # same thing happens by just running `$ tmux` tmux attach -t 0 open terminal failed: terminal does not support clear
I've been searching for Aquamacs / tmux integration, but haven't found much. It seems like most folks are content to just use Emacs in the shell within tmux, but unfortunately this isn't an option for Aquamacs as stated above.
It seems that the error stated below in the comments (
open terminal failed: can't find terminfo database) also happens in vanilla Emacs, even on Linux.
shellis a "limited" terminal (limited to replace some of the terminal functionality with Emacs-style functionality). I believe that if you try
tmux, that'll work.
term. However, I'm getting another error upon running
open terminal failed: can't find terminfo database. Btw, I'm using zsh if that makes any difference. I've also tried setting the
$TERMvariable to screen-256color and xterm-color, but that seems to have no effect.
multi-termpackage is reasonable alternative to
multi-termis installed, you can call with
M-x multi-term. Does that help?