From: moon@Virginia.EDU (Munho Yi)
Subject: screen/emacs binding problem answers (long)
Organization: The University of Virginia
Distribution: usa
Date: Tue, 24 Nov 1992 00:34:33 GMT

sorry for late summary,
my week was very busy.
there was very simple solution to
my problem, and i would like to
give credit to those who answered
me very helful way.
here they are.


From: ilya@BOURBAKI.MIT.EDU
Subject: Re: screen(1) and emacs binding
Newsgroups: comp.unix.shell
Organization: MIT Department of Mathematics

Hi!

The simplest way out is to type ^A twice. However, I added the line

escape ^G^G

to my .screenrc file and now any command for screen begins with ^G (do you use ^G with emacs often? Type it twice instead!).

Cheers, Ilya

------------------------------------------------------------------------
Subject: Re: screen(1) and emacs binding
From: Philip Guenther <guenther@stolaf.edu>


"Control-A a" will send a control-A to emacs.  Check out the COMMAND
KEYS section of the mapage for details.  Also consider using the
'escape' command in your .screenrc to make screen use something
besides conmtrol-A as the command key.

Philip Guenther

------------------------------------------------------------------------
From: Rosebud <schwim@cs.stanford.edu>
Subject: Re: screen(1) and emacs binding
Newsgroups: comp.unix.shell
Organization: The Land of Chocolate

Edit your .emacs file in your home directory (or make one if you have
none) and add the statement:

(global-set-key "<key>" '<function>)
Where <key> is the key you want to bind a function <function> to.
the function you want to bind is beginning-of-line
(global-set-kay "<key>" 'beginning-of-line)
where <key> is your replacement restroke.

>From the gnu.emacs.help faq:

	Inside an Emacs Lisp string, RET, LFD, DEL, ESC, SPC, and TAB
are specified with `\r', `\n', `\C-?', `\e', ` ', and `\t'.  C-x is
specified by `\C-x'.  M-x is specified the same was as "ESC x".
	An Emacs Lisp string begins and ends with the double quote
character, `"'.  Here are some examples:

       ESC [ D       ---> "\e[D"
       ESC [ 2 2 7 z ---> "\e[227z"
       ESC [ 1 8 ~   ---> "\e[18~"
       C-M-r         ---> "\e\C-r"

				Yours,
					Larry Schwimmer
					schwim@cs.stanford.edu

------------------------------------------------------------------------
Date: Sun, 15 Nov 92 23:26:26 EST
Subject: screen(1) and emacs binding

I, like you, use emacs and this problem you have is easily
circumvented, here is part of the man page to screen:

escape xy

Set the command character to x and the character generating a literal
command character to y (just like in the -e option).  Each argument is
either a single character, a two-character sequence of the form "^x"
(meaning "C-x"), a backslash followed by an octal number (specifying
the ASCII code of the character), or a backslash followed by a second
character, such as "\^" or "\\".  The default is "^Aa", but "`" is
recommended by one of the authors.

So, I just set the Ctl a prefix to Ctl ], emacs does not use that key
combination so that is my choice and if you use emacs that is probably
a good choice for you.  Here is the line to do that, just add it to
your .screenrc file:
			escape ^]]


____________________________________________________________________________
Peter Kazmier						45 Lancaster Apt 3F
Worcester Polytechnic Institute				Worcester, MA 01609
kaz@wpi.wpi.edu						Tel: (508) 741-4770
____________________________________________________________________________

------------------------------------------------------------------------
Subject: Re: screen(1) and emacs binding
From: "Larry W. Virden" <lvirden@cas.org>
Newsgroups: comp.unix.shell
Organization: Nedriv Software and Shoe Shiners, Uninc.


Read the man page for screen - Saying screen -e^Bb will leave your
^A alone and let you use ^B to give commands to screen.
Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614

------------------------------------------------------------------------
From: Agris Taurins <neodata!taurins@sparky.imd.sterling.com>
Subject: emacs/screens binding
Date: Wed, 18 Nov 92 12:44:53 CST

While I don't know the syntax for changing the binding for Emacs control 
functions, I know that through your .screenrc file you can change the command
key identifier for screens to anything you want.  We use "`" here.  Look in
the screens man page.

I hope this helps.

-- 
===============================================================================
Agris Taurins						V:(402) 697-8006
...uunet!sparky!neodata!taurins				F:(402) 330-3264
===============================================================================
------------------------------------------------------------------------

From: Christoph Badura <bad@flatlin.ka.sub.org>
Subject: Re: screen(1) and emacs binding
Newsgroups: comp.unix.shell

Use "ctrl-a a" as is explained in the screen(1) documentation.

Likewise "ctrl-a s" and "ctrl-a q" do what you would want them to do.

-- 
				Christoph Badura  ---  bad@flatlin.ka.sub.org

AIX is a better... is a better...  is a better... OpenSystem.
					IBM Rep at GUUG Symposium '92