*BSD News Article 91760


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.nacamar.de!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Backspace = ^H
Date: 23 Mar 1997 19:50:50 GMT
Organization: Private BSD site, Dresden
Lines: 44
Message-ID: <5h41iq$ii7@uriah.heep.sax.de>
References: <5h2c01$4i2@reader.seed.net.tw>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37630

ronald@trace.com.tw wrote:

> How can I set it, that the key 'Backspace' will do a backspace
> rather than type ^H ?

stty erase ^H

(where you can actually hit the Backspace key instead of typing ``^''
and ``h'', both are equivalent)

The opinions whether backspace (^H, 0x08) or delete (^?, 0x7f) should
be used as the default rubout character differ vastly between people,
so it's impossible to provide a default that would satisfy everyone.

> In Linux I can do a tab to finish the file name, does such function
> exist in FreeBSD as well? (tab does not work for this.)

That's a feature of the shell.  Shells providing this feature include
tcsh, bash, zsh, and ksh.  All of them are available in the ports
collection.

The default /bin/sh doesn't provide this feature at all, but it
provides command-line editing (set -o emacs).  The /bin/csh which is
also installed by default provides only a crude command-line history,
but provides filename completion (using the ESC key, but you gotta
``set filec'' first).

> In Linux you can pipe a command to |less this seems not work in
> FreeBSD. Is there another way to limit the output (last |less)?

Oh sheesh...  `less' is a pun on the word `more'.  more has been a
standard Unix command for ages.  (Of course, less is also available
from the ports collection.)

Also, specifically to last(1), note that you can do something like
``last -20'' in order to limit the display to the 20 most recent login
records.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)