I'm trying to use emacs (23.2.1) in daemon mode. I started it as
emacs --daemon and that works just fine. But whenever I try
emacsclient -t somefile I first get a line of garbage (e.g., `1;25C2;'), then the file is displayed (with emacs's mode line), but I can't do anything. It hangs; cursor movement keys don't work; C-x # doesn't work; the only thing I can do is open another console and kill the process.
If I start emacs normally (by clicking on a launcher on the panel, or just running
(server-start) in the config,
emacsclient file works just fine (i.e., loads the file in the graphical emacs instance). If I start emacs normally but use
emacsclient -t file, I get the same problem with it hanging.
I'm using Debian 6/Xfce, kernel 2.6.32-5-686.
$TERM is xterm, maybe that needs to be changed to something else? Is there anything else that's a likely culprit? I don't want to post my entire emacs config here because it's extensive, but if you really want to look through it it's here on github.