binding TAB in ksh88

binding TAB in ksh88

Post by Mohit Aro » Sat, 14 Jun 1997 04:00:00



Hi,
        can someone tell me how I can bind the TAB key to do file name
completion in ksh88. The default ESC ESC is too cumbersome.

- Mohit

 
 
 

binding TAB in ksh88

Post by J.J. Keijs » Wed, 25 Jun 1997 04:00:00




Quote:>Hi,
>    can someone tell me how I can bind the TAB key to do file name
>completion in ksh88. The default ESC ESC is too cumbersome.

You can't. Sorry. You'll need ksh93 for this; you could make your terminal
emulator fake TAB -> ESC-ESC, but this might*up other ASCII based
programs.

Sorry,

JJ

----------------------------------------------------------
                 *NOTE*
   My Email return address is not correct
    in order to avoid mass mailings...
     These are the correct addresses
     (but with dashes between all letters):

  Jan Just (JJ) Keijser

  X400: C=NL A=400NET P=SHELL O=SIEP RIJSWIJK
        OU1=EPT-RO OU2=OPENMAIL S=KEIJSER I=JJ
          or

  X400: C=GB A=ATTMAIL P=Logica O=LBV OU1=LBVRTDA S=KEIJSERJJ

  (who said X400 addresses aren't easy to remember :-)

  Just to confuse some of those junkmailers:


 
 
 

binding TAB in ksh88

Post by J.J. Keijs » Fri, 27 Jun 1997 04:00:00






>>You can't. Sorry. You'll need ksh93 for this; you could make your terminal
>>emulator fake TAB -> ESC-ESC, but this might*up other ASCII based
>>programs.

>How do you remap keys?  I'm using Solaris 2.5 and I have access to
>either dtterm or xterm.  I think it has something to do with X
>resources, but I don't know exactly what to do with X resources to
>make them do whatever it is they do.

X-resources are usually stored in $HOME/.Xresources or $HOME/.Xdefaults.

To remap keys for xterm, add the line
  XTerm*vt100.Translations:     #override <Key>Tab: string(\033\033) \n
to your .Xdefaults file (you might need to logout and login for the changes to
become visible). For dtterm, add
  DTerm*vt100.Translations:     #override <Key>Tab: string(\033\033) \n

With this setting you cannot use Tab within vi anymore, however. For Xterm
you can also reassign a key to switch between keyboard mappings:
  XTerm*VT100.Translations:             #override <Key>F12: keymap(vi)
  XTerm*VT100.viKeymap.translations:    <Key>F12: keymap(None) \n\
                                        <Key>Tab: string(\009) \n

You could then use F12 to switch back to the old mapping when you're in vi. I
don't know if you can do it automatically, ie switch back when you start vi
(or any other curses-based app, basically). Pressing F12 again will revert you
to the old mapping.

HTH,

JJ

----------------------------------------------------------
                 *NOTE*
   My Email return address is not correct
    in order to avoid mass mailings...
     These are the correct addresses
     (but with dashes between all letters):

  Jan Just (JJ) Keijser

  X400: C=NL A=400NET P=SHELL O=SIEP RIJSWIJK
        OU1=EPT-RO OU2=OPENMAIL S=KEIJSER I=JJ
          or

  X400: C=GB A=ATTMAIL P=Logica O=LBV OU1=LBVRTDA S=KEIJSERJJ

  (who said X400 addresses aren't easy to remember :-)

  Just to confuse some of those junkmailers:

 
 
 

1. Script GURUs - a tab is a tab is a tab

I have ascii files created by various people I want to run something
that will look for tabs and based on the tab length convert tabs to the
right number of spaces, however the above people use various tab
lengths and do their indenting a little differently. Does someone out
there have a solution to this type of situation?????


you might have a solution.

Thanks in advance

Jim

2. help: keys for changing screen resolutions

3. Can one change bindings on Crtl+Tab in KDE2 ?

4. amd athlon cooling on kt266/266a chipset

5. deactivate KDE key bindings (Ctrl-TAB)

6. cannot fork problem !

7. key binding C-Tab

8. gdb should be sillier 8-)

9. BASH readline: complete & possible-completions both bound to TAB?

10. Binding Shift-tab in tcsh.

11. entering tab in vi without using tab key

12. replacing tabs with emulated tabs

13. tab versus tab