It is currently Tue, 30 Nov 2021 18:40:22 GMT



 
Author Message
 tcsh: Useful key bindings
Hi, here are some nice bindkey commands you could add in
your .tcshrc file.  The escape sequences below are working
on sun sparcs, I don't know if they work on other platforms
and/or/xor keyboards.
If you want to add other special key codes (function keys ...),
press <Ctrl>+V followed by the special key.

# Use Delete key to delete current char,
# BackSpace for the previous char (remains defualt binding)
bindkey ^?                      delete-char

# Home key goes to beginning of line
bindkey ^[[214z beginning-of-line

# End key to end of line
bindkey ^[[220z end-of-line

# Ins key toggles overwrite mode
bindkey ^[[2z           overwrite-mode

# PgUp goes to previous word
bindkey ^[[216z backward-word

# PgDn goes to next word
bindkey ^[[222z forward-word

# This redefinition of up/down means that if you press up/down
# on a blank line, the arrows will work as in std setup,
# whilst of you have started writing a command, it will search for
# the next/previous match.
bindkey -k down history-search-forward
bindkey -k up history-search-backward

Question for real hackers :-)
Anyone who knows how to toggle the color of the cursor
depending on overwrite-mode status, e.g. red cursor in overwrite mode
and green cursor in insert mode?

Regards
?yvind Yrke
oyv...@stavanger.sgp.slb.com



 Mon, 04 Dec 1995 23:28:55 GMT   
 
   [ 1 post ] 

Similar Threads

1. Interpreting key bindings of tcsh - Help

2. changing the key bindings for tcsh

3. cygwin tcsh key bindings for arrows

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

5. tcsh key bindings

6. binding function keys in tcsh

7. Arrow keys bindings in tcsh after using vi

8. Binding a Meta key in tcsh

9. tcsh binding of function keys

10. KDE 2.X key binding to Multimedia Keys


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