Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
starting tmux changes profile keys (character sequences sent)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ali Tofigh  
View profile  
 More options Oct 30 2012, 8:06 pm
From: Ali Tofigh <alix.tof...@gmail.com>
Date: Tue, 30 Oct 2012 20:05:46 -0400
Local: Tues, Oct 30 2012 8:05 pm
Subject: starting tmux changes profile keys (character sequences sent)
Hi,

I've used iterm2 for a while (I love it!) and I'm just trying out
tmux. I get the following strange behaviour from iterm:

I have only one profile defined in iterm2. I've set things up to work
with the gnu readline library and emacs (i.e., i've configured in my
iterm2 profile the character sequences that are sent by iterm2 and
recognized by readline and emacs). But when I start tmux on a remote
server, iterm2 suddenly changes the character sequences that are being
sent. They no longer correspond to my iterm2 profile.

For example, in my iterm2 profile Ctrl-left arrow sends the sequence
^[[1;5D. In my ~/.inputrc file I have the line '"\e[1;5D":
backward-word'. If I do ctrl-v followed by ctrl-left arrow, I get
exactly the output I expect, namely "^[[1;5D". BUT after starting
tmux, ctrl-left arrow no longer works (i.e., it does not result in
backward-word). ctrl-v ctrl-left arrow shows that the character
sequence being sent is "^[OD". How come?

/Ali


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Gifford  
View profile  
 More options Oct 31 2012, 12:22 am
From: Scott Gifford <sgiff...@suspectclass.com>
Date: Wed, 31 Oct 2012 00:21:36 -0400
Local: Wed, Oct 31 2012 12:21 am
Subject: Re: [iterm2-discuss] starting tmux changes profile keys (character sequences sent)

On Tue, Oct 30, 2012 at 8:05 PM, Ali Tofigh <alix.tof...@gmail.com> wrote:

[ ... ]

> when I start tmux on a remote
> server, iterm2 suddenly changes the character sequences that are being
> sent. They no longer correspond to my iterm2 profile.

I'm more familiar with screen than tmux, but I think they both work the
same way: screen/tmux will read the escape sequences from iterm2, then
re-encode them before sending them on to the programs running inside.  So
the keys are probably making it from iterm2 to tmux correctly, but then
tmux is sending different keys to its terminals.  Your next step might be
to take a close look at your tmux configuration.

Hope this helps,

-----Scott.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Tofigh  
View profile  
 More options Oct 31 2012, 5:02 pm
From: Ali Tofigh <alix.tof...@gmail.com>
Date: Wed, 31 Oct 2012 17:02:02 -0400
Local: Wed, Oct 31 2012 5:02 pm
Subject: Re: [iterm2-discuss] starting tmux changes profile keys (character sequences sent)
yes, you are right.

For others who might be in similar situation: I'm trying to get emacs
to work properly inside tmux. By putting this line in the tmux
configuration file

set-window-option -g xterm-keys on

tmux will generate xterm sequences. My next step is to figure out how
to get emacs to understand the xterm sequences even when TERM=screen.

/ali

On Wed, Oct 31, 2012 at 12:21 AM, Scott Gifford


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Gifford  
View profile  
 More options Oct 31 2012, 11:37 pm
From: Scott Gifford <sgiff...@suspectclass.com>
Date: Wed, 31 Oct 2012 23:36:41 -0400
Local: Wed, Oct 31 2012 11:36 pm
Subject: Re: [iterm2-discuss] starting tmux changes profile keys (character sequences sent)

On Wed, Oct 31, 2012 at 5:02 PM, Ali Tofigh <alix.tof...@gmail.com> wrote:

[ ... ]

> My next step is to figure out how
> to get emacs to understand the xterm sequences even when TERM=screen.

Or just set TERM=xterm-color.

-----Scott.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Tofigh  
View profile  
 More options Nov 1 2012, 2:55 am
From: Ali Tofigh <alix.tof...@gmail.com>
Date: Thu, 1 Nov 2012 02:55:12 -0400
Local: Thurs, Nov 1 2012 2:55 am
Subject: Re: [iterm2-discuss] starting tmux changes profile keys (character sequences sent)

It's just that tmux man page explicitly says that TERM must be set to
screen or derivatives (like screen-256color) for programs running in a tmux
session.

/Ali

On 2012-10-31, at 23:37, Scott Gifford <sgiff...@suspectclass.com> wrote:

On Wed, Oct 31, 2012 at 5:02 PM, Ali Tofigh <alix.tof...@gmail.com> wrote:

[ ... ]

> My next step is to figure out how
> to get emacs to understand the xterm sequences even when TERM=screen.

Or just set TERM=xterm-color.

-----Scott.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »