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.
EDIT:
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.
shell
is a "limited" terminal (limited to replace some of the terminal functionality with Emacs-style functionality). I believe that if you tryM-x term
withtmux
, that'll work.term
. However, I'm getting another error upon runningtmux
:open terminal failed: can't find terminfo database
. Btw, I'm using zsh if that makes any difference. I've also tried setting the$TERM
variable to screen-256color and xterm-color, but that seems to have no effect.multi-term
package is reasonable alternative totmux
. Oncemulti-term
is installed, you can call withM-x multi-term
. Does that help?