home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4849 < prev    next >
Encoding:
Text File  |  1992-11-24  |  5.3 KB  |  155 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!uvaarpa!murdoch!usenet
  3. From: moon@Virginia.EDU (Munho Yi)
  4. Subject: screen/emacs binding problem answers (long)
  5. Message-ID: <1992Nov24.003433.25546@murdoch.acc.Virginia.EDU>
  6. Sender: usenet@murdoch.acc.Virginia.EDU
  7. Organization: The University of Virginia
  8. Distribution: usa
  9. Date: Tue, 24 Nov 1992 00:34:33 GMT
  10. Lines: 143
  11.  
  12. sorry for late summary,
  13. my week was very busy.
  14. there was very simple solution to
  15. my problem, and i would like to
  16. give credit to those who answered
  17. me very helful way.
  18. here they are.
  19.  
  20.  
  21. From: ilya@BOURBAKI.MIT.EDU
  22. Subject: Re: screen(1) and emacs binding
  23. Newsgroups: comp.unix.shell
  24. Organization: MIT Department of Mathematics
  25.  
  26. Hi!
  27.  
  28. The simplest way out is to type ^A twice. However, I added the line
  29.  
  30. escape ^G^G
  31.  
  32. to my .screenrc file and now any command for screen begins with ^G (do you use ^G with emacs often? Type it twice instead!).
  33.  
  34. Cheers, Ilya
  35.  
  36. ------------------------------------------------------------------------
  37. Subject: Re: screen(1) and emacs binding
  38. From: Philip Guenther <guenther@stolaf.edu>
  39.  
  40.  
  41. "Control-A a" will send a control-A to emacs.  Check out the COMMAND
  42. KEYS section of the mapage for details.  Also consider using the
  43. 'escape' command in your .screenrc to make screen use something
  44. besides conmtrol-A as the command key.
  45.  
  46. Philip Guenther
  47.  
  48. ------------------------------------------------------------------------
  49. From: Rosebud <schwim@cs.stanford.edu>
  50. Subject: Re: screen(1) and emacs binding
  51. Newsgroups: comp.unix.shell
  52. Organization: The Land of Chocolate
  53.  
  54. Edit your .emacs file in your home directory (or make one if you have
  55. none) and add the statement:
  56.  
  57. (global-set-key "<key>" '<function>)
  58. Where <key> is the key you want to bind a function <function> to.
  59. the function you want to bind is beginning-of-line
  60. (global-set-kay "<key>" 'beginning-of-line)
  61. where <key> is your replacement restroke.
  62.  
  63. >From the gnu.emacs.help faq:
  64.  
  65.     Inside an Emacs Lisp string, RET, LFD, DEL, ESC, SPC, and TAB
  66. are specified with `\r', `\n', `\C-?', `\e', ` ', and `\t'.  C-x is
  67. specified by `\C-x'.  M-x is specified the same was as "ESC x".
  68.     An Emacs Lisp string begins and ends with the double quote
  69. character, `"'.  Here are some examples:
  70.  
  71.        ESC [ D       ---> "\e[D"
  72.        ESC [ 2 2 7 z ---> "\e[227z"
  73.        ESC [ 1 8 ~   ---> "\e[18~"
  74.        C-M-r         ---> "\e\C-r"
  75.  
  76.                 Yours,
  77.                     Larry Schwimmer
  78.                     schwim@cs.stanford.edu
  79.  
  80. ------------------------------------------------------------------------
  81. Date: Sun, 15 Nov 92 23:26:26 EST
  82. Subject: screen(1) and emacs binding
  83.  
  84. I, like you, use emacs and this problem you have is easily
  85. circumvented, here is part of the man page to screen:
  86.  
  87. escape xy
  88.  
  89. Set the command character to x and the character generating a literal
  90. command character to y (just like in the -e option).  Each argument is
  91. either a single character, a two-character sequence of the form "^x"
  92. (meaning "C-x"), a backslash followed by an octal number (specifying
  93. the ASCII code of the character), or a backslash followed by a second
  94. character, such as "\^" or "\\".  The default is "^Aa", but "`" is
  95. recommended by one of the authors.
  96.  
  97. So, I just set the Ctl a prefix to Ctl ], emacs does not use that key
  98. combination so that is my choice and if you use emacs that is probably
  99. a good choice for you.  Here is the line to do that, just add it to
  100. your .screenrc file:
  101.             escape ^]]
  102.  
  103.  
  104. ____________________________________________________________________________
  105. Peter Kazmier                        45 Lancaster Apt 3F
  106. Worcester Polytechnic Institute                Worcester, MA 01609
  107. kaz@wpi.wpi.edu                        Tel: (508) 741-4770
  108. ____________________________________________________________________________
  109.  
  110. ------------------------------------------------------------------------
  111. Subject: Re: screen(1) and emacs binding
  112. From: "Larry W. Virden" <lvirden@cas.org>
  113. Newsgroups: comp.unix.shell
  114. Organization: Nedriv Software and Shoe Shiners, Uninc.
  115.  
  116.  
  117. Read the man page for screen - Saying screen -e^Bb will leave your
  118. ^A alone and let you use ^B to give commands to screen.
  119. Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
  120. Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
  121. Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
  122.  
  123. ------------------------------------------------------------------------
  124. From: Agris Taurins <neodata!taurins@sparky.imd.sterling.com>
  125. Subject: emacs/screens binding
  126. Date: Wed, 18 Nov 92 12:44:53 CST
  127.  
  128. While I don't know the syntax for changing the binding for Emacs control 
  129. functions, I know that through your .screenrc file you can change the command
  130. key identifier for screens to anything you want.  We use "`" here.  Look in
  131. the screens man page.
  132.  
  133. I hope this helps.
  134.  
  135. -- 
  136. ===============================================================================
  137. Agris Taurins                        V:(402) 697-8006
  138. ...uunet!sparky!neodata!taurins                F:(402) 330-3264
  139. ===============================================================================
  140. ------------------------------------------------------------------------
  141.  
  142. From: Christoph Badura <bad@flatlin.ka.sub.org>
  143. Subject: Re: screen(1) and emacs binding
  144. Newsgroups: comp.unix.shell
  145.  
  146. Use "ctrl-a a" as is explained in the screen(1) documentation.
  147.  
  148. Likewise "ctrl-a s" and "ctrl-a q" do what you would want them to do.
  149.  
  150. -- 
  151.                 Christoph Badura  ---  bad@flatlin.ka.sub.org
  152.  
  153. AIX is a better... is a better...  is a better... OpenSystem.
  154.                     IBM Rep at GUUG Symposium '92
  155.