reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia
Home >> OS >> Unix >> SSH >>

Make Home, End and Delete keys work on FreeBSD [1/1]

Type: Code reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia
Make Home, End and Delete keys work on FreeBSD
Level: Beginner reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia 
Make Home, End and Delete keys work on FreeBSD
Date: 2007-Oct-07
Make Home, End and Delete keys work on FreeBSD
Visited: 1645 times
Make Home, End and Delete keys work on FreeBSD
Rating: Make Home, End and Delete keys work on FreeBSD
Make Home, End and Delete keys work on FreeBSD
Author: Stephen Think
This tutorial will explain you how you can enable Home, End and Delete keys in ssh terminal of FreeBSD.

This configuration is not applicable for Linux distributions as all of them i have seen have these keys working by default.

The default environment for FreeBSD is CSH. You will need to open .cshrc file located in your home directory.

It should like this:

# $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $
#
# .cshrc - csh resource script, read at beginning of execution by each shell
#
# see also csh(1), environ(7).
#

# A righteous umask
umask 22

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin $HOME/bin)

setenv  EDITOR  vi
setenv  PAGER   more
setenv  BLOCKSIZE       K

if ($?prompt) then
        # An interactive shell -- set some stuff up
        set prompt = "`/bin/hostname -s`# "
        set filec
        set history = 100
        set savehist = 100
        set mail = (/var/mail/$USER)
        if ( $?tcsh ) then
                bindkey "^W" backward-delete-word
                bindkey -k up history-search-backward
                bindkey -k down history-search-forward
        endif
endif
You need to add few lines in the if clause. Open this file with your favorite editor and after the bindkey lines add the lines bellow. To apply what you have done run this command.

[localhost]# source .cshrc

bindkey "\e[1~" beginning-of-line  # Home
bindkey "\e[7~" beginning-of-line  # Home rxvt
bindkey "\e[2~" overwrite-mode     # Ins
bindkey "\e[3~" delete-char        # Delete
bindkey "\e[4~" end-of-line        # End
bindkey "\e[8~" end-of-line        # End rxvt
Rate this tutorial:                    
reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia - Make Home, End and Delete keys work on FreeBSD [1/1] - reference, tutorial, tutorials, help, example, photoshop, html, php, mysql, 3d software, internet, graphics, programming, multimedia

Need a specific tutorial? Do not hesitate and submit a request!
Keywords: remote desktop port  change remote desktop port  rdp port number  remote desktop port number  RDP port  function overloading in c++  change RDP port  exception handling in C++  rdp ports  remote desktop ports  function overloading  Trillian webcam  remote desktop port change  windows remote desktop port  remote desktop change port  exception handling c++  how to change remote desktop port  change remote desktop port number  function overloading c++  check my windows version