unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* bind function key difference between terminal and Xterm
@ 2008-11-28  7:38 Xend
  2008-11-28 10:13 ` Peter Dyballa
       [not found] ` <mailman.1414.1227867214.26697.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Xend @ 2008-11-28  7:38 UTC (permalink / raw
  To: help-gnu-emacs

#grep enlarge-window ~/.emacs
  (global-set-key (kbd "C-<up>") 'enlarge-window)
#runlevel
 3 5
# emacs
 >>enter
     M-x split-window
     M-x other-window
     <up> ;; the lastest window is enlarged.
      ctrl + <up> ;; it can't work but display ';5A' in window

but when i run Xterm and then execute GNU/Xemacs, ctrl + <up> can
enlarge window. why is it? how can i set to enlarge window with "ctrl
+ <up>" in terminal??




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

* Re: bind function key difference between terminal and Xterm
  2008-11-28  7:38 bind function key difference between terminal and Xterm Xend
@ 2008-11-28 10:13 ` Peter Dyballa
       [not found] ` <mailman.1414.1227867214.26697.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2008-11-28 10:13 UTC (permalink / raw
  To: Xend; +Cc: help-gnu-emacs


Am 28.11.2008 um 08:38 schrieb Xend:

> how can i set to enlarge window with "ctrl
> + <up>" in terminal??

By re-writing its emulation or the terminal's firmware! C-up is an  
event in a windowing system. A terminal or its emulation has no idea  
of this concept.

Simple proof: type in *scratch* buffer C-q <up> and also C-q C-<up>.  
They're the same ANSI Esc sequence, aren't they?

--
Greetings
                                  <]
    Pete      o        __o         |__    o           recumbo
     ___o    /I       -\<,         |o \  -\),-%       ergo sum!
___/\ /\___./ \___...O/ O____.....`-O-'-()--o_________________






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

* Re: bind function key difference between terminal and Xterm
       [not found] ` <mailman.1414.1227867214.26697.help-gnu-emacs@gnu.org>
@ 2008-11-29  3:27   ` Xend
  2008-11-29 10:02     ` Peter Dyballa
  0 siblings, 1 reply; 4+ messages in thread
From: Xend @ 2008-11-29  3:27 UTC (permalink / raw
  To: help-gnu-emacs

On Nov 28, 6:13 pm, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 28.11.2008 um 08:38 schrieb Xend:
>
> > how can i set to enlarge window with "ctrl
> > + <up>" in terminal??
>
> By re-writing its emulation or the terminal's firmware! C-up is an  
> event in a windowing system. A terminal or its emulation has no idea  
> of this concept.
>
> Simple proof: type in *scratch* buffer C-q <up> and also C-q C-<up>.  
> They're the same ANSI Esc sequence, aren't they?
>
C-up is an event in a windowing system. but it's not an event in
Terminal. why EMACS can't catch it.


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

* Re: bind function key difference between terminal and Xterm
  2008-11-29  3:27   ` Xend
@ 2008-11-29 10:02     ` Peter Dyballa
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2008-11-29 10:02 UTC (permalink / raw
  To: Xend; +Cc: help-gnu-emacs


Am 29.11.2008 um 04:27 schrieb Xend:

> C-up is an event in a windowing system. but it's not an event in
> Terminal. why EMACS can't catch it.


GNU Emacs, when launched without windowing, is a client of its host,  
the terminal or terminal emulation. What Emacs receives are not  
events – the terminal emulation, when running in a windowing system,  
does receive them – but ANSI Esc sequences, by which the cursor can  
change its shape or gets positioned or is moved or text elements are  
emphasised etc. Teach your terminal emulation to send different codes  
for <up> and C-<up> keyboard input, then GNU Emacs will be able to  
distinguish between them.

--
Greetings

   Pete

Clovis' Consideration of an Atmospheric Anomaly:
         The perversity of nature is nowhere better demonstrated
         than by the fact that, when exposed to the same atmosphere,
         bread becomes hard while crackers become soft.







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

end of thread, other threads:[~2008-11-29 10:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28  7:38 bind function key difference between terminal and Xterm Xend
2008-11-28 10:13 ` Peter Dyballa
     [not found] ` <mailman.1414.1227867214.26697.help-gnu-emacs@gnu.org>
2008-11-29  3:27   ` Xend
2008-11-29 10:02     ` Peter Dyballa

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).