unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug with tmux/screen and special characters
@ 2014-05-27  4:39 Danil Orlov
  2014-05-27  7:10 ` Andreas Schwab
  2014-05-27 12:47 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Danil Orlov @ 2014-05-27  4:39 UTC (permalink / raw)
  To: emacs-devel

I've found that if I run emacs 24.3.1 under tmux or GNU screen, and add this snippet to my .emacs:


(global-set-key (kbd "M-[") 'hide-subtree)
(global-set-key (kbd "M-]") 'show-subtree)


then I receive trouble with such keys: Home, End, PgUp, PgDown, F1-F12 .

For example End key just inserts "~4" into current buffer.

If I use for example:


(global-set-key (kbd "M-1") 'hide-subtree)
(global-set-key (kbd "M-2") 'show-subtree)


Then special keys handled correct.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug with tmux/screen and special characters
  2014-05-27  4:39 Bug with tmux/screen and special characters Danil Orlov
@ 2014-05-27  7:10 ` Andreas Schwab
  2014-05-27 12:47 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2014-05-27  7:10 UTC (permalink / raw)
  To: Danil Orlov; +Cc: emacs-devel

Danil Orlov <zargener@gmail.com> writes:

> I've found that if I run emacs 24.3.1 under tmux or GNU screen, and add this snippet to my .emacs:
>
>
> (global-set-key (kbd "M-[") 'hide-subtree)
> (global-set-key (kbd "M-]") 'show-subtree)
>
>
> then I receive trouble with such keys: Home, End, PgUp, PgDown, F1-F12 .

All these keys produce sequences beginning with ESC [, but you have
disabled their bindings in function-key-map.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug with tmux/screen and special characters
  2014-05-27  4:39 Bug with tmux/screen and special characters Danil Orlov
  2014-05-27  7:10 ` Andreas Schwab
@ 2014-05-27 12:47 ` Stefan Monnier
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2014-05-27 12:47 UTC (permalink / raw)
  To: Danil Orlov; +Cc: emacs-devel

> I've found that if I run emacs 24.3.1 under tmux or GNU screen, and
> add this snippet to my .emacs:
> (global-set-key (kbd "M-[") 'hide-subtree)
> (global-set-key (kbd "M-]") 'show-subtree)

M-[ in text-terminals is sent to Emacs as "ESC [".

> then I receive trouble with such keys: Home, End, PgUp, PgDown, F1-F12 .

These keys are sent by the text terminal as escape sequences that start
with "ESC [".


        Stefan



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-27 12:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27  4:39 Bug with tmux/screen and special characters Danil Orlov
2014-05-27  7:10 ` Andreas Schwab
2014-05-27 12:47 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).