It is currently Tue, 30 Nov 2021 18:09:48 GMT



 
Author Message
 Binding a Meta key in tcsh
I want to bind meta P to i-search-back in tcsh.  The syntax is something like

            bindkey ?p i-search-back

where ? is replaced by the meta designator.  Anyone know what it is.  I can't
find it in the man pages and the FAQ says to merely insert:

if ( $?tcsh && $?prompt ) then
    if ( "`echotc meta`" == "yes" ) then
         stty pass8
    endif
endif

in the .cshrc file to facilitate the meta feature.

--
                -- Jeff Spiegel         408-433-4291    



 Wed, 03 Jul 1996 06:43:02 GMT   
 Binding a Meta key in tcsh

In article <2h775m$...@lsi.lsil.com>, je...@lsil.com (Jeff Spiegel - 4291) writes:

: I want to bind meta P to i-search-back in tcsh.  The syntax is something like

:           bindkey ?p i-search-back

: where ? is replaced by the meta designator.  Anyone know what it is.  I can't
: find it in the man pages and the FAQ says to merely insert:

: if ( $?tcsh && $?prompt ) then
:     if ( "`echotc meta`" == "yes" ) then
:        stty pass8
:     endif
: endif

: in the .cshrc file to facilitate the meta feature.

: --
:               -- Jeff Spiegel         408-433-4291    

well, all I do is: bindkey ^[p i-search-back
and it works fine.. meta as in control-[...

-mark

--
====================================================================

Offer good while supplies last.   | Boston University
Mark Thomas                       | CS Cluster Terminal Assistant
mtho...@cs.bu.edu             | Consultant, User Services
Phone: (Home) 617-352-6385        | Computer Science Undergraduate
       (Work) 617-353-5225        | Learning Perl!
:) :) :)

====================================================================



 Wed, 03 Jul 1996 08:35:21 GMT   
 Binding a Meta key in tcsh
In article <2h775m$...@lsi.lsil.com> je...@lsil.com (Jeff Spiegel - 4291) writes:
   I want to bind meta P to i-search-back in tcsh.  The syntax is
   something like

               bindkey ?p i-search-back

   where ? is replaced by the meta designator.  Anyone know what it
   is.  I can't find it in the man pages and the FAQ says to merely
   insert:

i can tell you how i solved this problem for myself.  i use something
like the following:

source this:

-----------snip-------------------------------------------------------
# This contains tcsh key bindings.
#
# In order for the meta-key stuff to work you need:
#       1. tcsh compiled 8-bit clean (echo $version and look for 8b)
#       2. stty pass8
#       3. rlogin -8 if applicable
#
# no flag for a tcsh function
# -s for a string
# -c for a unix command

bindkey    "\345" clear-screen         # this binds M-e to a function
-----------snip-------------------------------------------------------

now, i got the octal code by using tcsh's quoting mechanism.  at the
prompt, enter a single control-v, and then enter whatever it is you
want, say, meta-e.  it will show it to you as \345.

john beacom
bea...@phenom.physics.wisc.edu



 Wed, 03 Jul 1996 09:20:49 GMT   
 
   [ 3 post ] 

Similar Threads

1. tcsh and meta key

2. tcsh and meta key

3. meta key in tcsh doesn't work

4. How to set meta key for tcsh

5. keymap bindings with SUN "meta" key

6. tcsh/xterm key-bind problem

7. Interpreting key bindings of tcsh - Help

8. changing the key bindings for tcsh

9. cygwin tcsh key bindings for arrows

10. tcsh, emacs key bindings, SHIFT-arrow possible?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software