Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The title says it all. I use Escq a lot (stashing the current line while I execute another command), and it works fine with Gnome Terminal 3.6.0 + zsh. However, if I start tmux, then it stops working: the cursor just moves one character to the left and stays there. Altq does not work either.

I don't set TERM in .zshrc, in .tmux.conf I use: set -g default-terminal "screen-256color".

share|improve this question
Does it work as Alt-q? – jordanm Oct 5 '12 at 15:40

I found out a solution for myself (Alt-q)

bindkey "^[q" push-line

I got that "^[" part from the zkbd script (see man zshcontrib). You probably can get the equivalent for the ESC key there, but it looks to be the same.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.