You are not logged in.

#1 2015-05-15 00:14:21

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

no cursor in emacs with tmux

I'm running emacs in tmux and the cursor doesn't seem to appear. When I run emacs outside of tmux everything is fine. I'm not sure where to start debugging this or what could be relevant to this problem. It was working before I upgraded to tmux-2.0.

Offline

#2 2015-05-15 01:12:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: no cursor in emacs with tmux

Value of $TERM in and out of tmux?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-05-15 02:07:10

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: no cursor in emacs with tmux

screen-256color. its the same both in and out of tmux. i set it in my .zprofile (i use zsh).

Offline

#4 2015-05-15 02:23:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: no cursor in emacs with tmux

That is incorrect: forcing your term in a shell initialisation file will break things.

Remove that line from .zshrc and set the term in tmux with:

set -g default-terminal "screen-256color"

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2015-05-15 08:26:33

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: no cursor in emacs with tmux

Thats never worked for me. It doesn't show colors properly when I set it in the tmux config. Maybe its the way I start zsh? I start it as a login shell.

Offline

#6 2015-05-15 10:08:06

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: no cursor in emacs with tmux

So every shell you open is a login shell? And you have hacky workarounds to compensate for that? Why?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-05-15 12:08:35

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: no cursor in emacs with tmux

Well, I don't open more than terminal, and in fact I can't with the key bindings I use right now. I use awesome and it opens one terminal with tmux like this, xfce4-terminal -e \"zsh -l -c \'tmux -q has && tmux attach -d || tmux new'\". If i try to start another terminal with mod4+enter it brings the one running tmux into focus, only if there isn't currently running does it start one.

Is there a better way to set this stuff up?

Offline

#8 2015-05-15 20:00:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: no cursor in emacs with tmux

I still don't get why it has to be a login shell. Are you using a DM that breaks that functionality?

IMO, this is why you are experiencing term-related issues: your setup is unnecessarily convoluted. Try starting from a simple interactive shell, see if it works there, and then add the bits and pieces back until it breaks.

Is there a better way to set this up? Probably. I guess it depends on what you are trying to do; only have a single tmux session?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2015-05-21 11:30:59

littleqz
Member
Registered: 2014-11-10
Posts: 1

Re: no cursor in emacs with tmux

jasonwryan wrote:

Is there a better way to set this up? Probably.

simply build tmux from latest source code fix the problem :-)


I need only three things: linux, terminal, and chromium.

Offline

Board footer

Powered by FluxBB