Discussion:
Tmux-1.9a not recognizing Enter key to exit scroll-mode
Juan Manuel Santos
2015-02-05 12:31:46 UTC
Permalink
Hello!

I have been a tmux user for a couple of years now, and it is a central part of my work
nowadays :)

I recently started building a couple of new servers (I always use Gentoo for my
servers), and one of the first steps is to merge tmux and copy over my tmux.conf file.

What stroke me as odd is that on the new servers I can no longer use the enter key to
exit scroll mode. I have to use either Esc or 'q'. I googled around a bit and Enter was
never listed (at least officially) to do this, only Esc/q. However, I cannot for the life of
me understand why using the same tmux.conf on two different servers renders two
different behaviours.

My use flags are the same on both servers (vim-syntax disabled, but enabling it does
not have an effect), as well as tmux versions. I even checked ncurses too but it's
same versions and use flags on both servers. My TERM is xterm, which gets changed
to screen when inside tmux, and I'm accessing both servers via ssh. I even compared
the 'env' of both servers when inside tmux, but I could find nothing there that pointed
to the problem (I can provide both 'env' commands if needed)

I know that I could use Esc or q, but my muscle memory is already set to enter :p.
Also, I could bind the key but I don't know to what should I bind it to. Moreover, why
with an unbinded key in a config file, it behaves differently on two servers.

If anybody knows of a way to debug this to compare behaviour between different
servers I'd be happy to follow it. My tmux.conf file:

https://bpaste.net/show/cf949485a0df[1]

Thanks in advance and cheers!
--
Juan Manuel Santos <***@gmail.com>
Pubkey: www.vicarious.com.ar/~godlike/godlike64.at.gmail.dot.com.asc

--------
[1] https://bpaste.net/show/cf949485a0df
Nicholas Marriott
2015-02-05 12:43:33 UTC
Permalink
probably you have VISUAL or EDITOR set to vi on some boxes but not on
others. enter only works with mode-keys set to vi
Post by Juan Manuel Santos
Hello!
I have been a tmux user for a couple of years now, and it is a central
part of my work nowadays :)
I recently started building a couple of new servers (I always use Gentoo
for my servers), and one of the first steps is to merge tmux and copy over
my tmux.conf file.
What stroke me as odd is that on the new servers I can no longer use the
enter key to exit scroll mode. I have to use either Esc or 'q'. I googled
around a bit and Enter was never listed (at least officially) to do this,
only Esc/q. However, I cannot for the life of me understand why using the
same tmux.conf on two different servers renders two different behaviours.
My use flags are the same on both servers (vim-syntax disabled, but
enabling it does not have an effect), as well as tmux versions. I even
checked ncurses too but it's same versions and use flags on both servers.
My TERM is xterm, which gets changed to screen when inside tmux, and I'm
accessing both servers via ssh. I even compared the 'env' of both servers
when inside tmux, but I could find nothing there that pointed to the
problem (I can provide both 'env' commands if needed)
I know that I could use Esc or q, but my muscle memory is already set to
enter :p. Also, I could bind the key but I don't know to what should I
bind it to. Moreover, why with an unbinded key in a config file, it
behaves differently on two servers.
If anybody knows of a way to debug this to compare behaviour between
[1]https://bpaste.net/show/cf949485a0df
Thanks in advance and cheers!
--
Pubkey: www.vicarious.com.ar/~godlike/godlike64.at.gmail.dot.com.asc
References
Visible links
1. https://bpaste.net/show/cf949485a0df
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
Juan Manuel Santos
2015-02-05 12:50:25 UTC
Permalink
Well, that was fast (and stupid of my part).

I had EDITOR set to nano (I still had not changed it as part of having a
system that I like to use, is to use vim, and Gentoo defaults to nano).

Weird thing was, on my local system at work, I have EDITOR set to nano (guess
I never liked this system much heh) and tmux merged with vim-syntax enabled.

Well, that's for it then. Thanks Nicholas, you've saved me endless days of
headaches.

Cheers!
Post by Nicholas Marriott
probably you have VISUAL or EDITOR set to vi on some boxes but not on
others. enter only works with mode-keys set to vi
Post by Juan Manuel Santos
Hello!
I have been a tmux user for a couple of years now, and it is a central
part of my work nowadays :)
I recently started building a couple of new servers (I always use Gentoo
for my servers), and one of the first steps is to merge tmux and copy over
my tmux.conf file.
What stroke me as odd is that on the new servers I can no longer use the
enter key to exit scroll mode. I have to use either Esc or 'q'. I googled
around a bit and Enter was never listed (at least officially) to do this,
only Esc/q. However, I cannot for the life of me understand why using the
same tmux.conf on two different servers renders two different behaviours.
My use flags are the same on both servers (vim-syntax disabled, but
enabling it does not have an effect), as well as tmux versions. I even
checked ncurses too but it's same versions and use flags on both servers.
My TERM is xterm, which gets changed to screen when inside tmux, and I'm
accessing both servers via ssh. I even compared the 'env' of both servers
when inside tmux, but I could find nothing there that pointed to the
problem (I can provide both 'env' commands if needed)
I know that I could use Esc or q, but my muscle memory is already set to
enter :p. Also, I could bind the key but I don't know to what should I
bind it to. Moreover, why with an unbinded key in a config file, it
behaves differently on two servers.
If anybody knows of a way to debug this to compare behaviour between
[1]https://bpaste.net/show/cf949485a0df
Thanks in advance and cheers!
--
Pubkey: www.vicarious.com.ar/~godlike/godlike64.at.gmail.dot.com.asc
References
Visible links
1. https://bpaste.net/show/cf949485a0df
--------------------------------------------------------------------------
---- Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is
your hub for all things parallel software development, from weekly
thought leadership blogs to news, videos, case studies, tutorials and
more. Take a look and join the conversation now.
http://goparallel.sourceforge.net/
_______________________________________________
tmux-users mailing list
https://lists.sourceforge.net/lists/listinfo/tmux-users
--
Juan Manuel Santos <***@gmail.com>
Pubkey: www.vicarious.com.ar/~godlike/godlike64.at.gmail.dot.com.asc
Loading...