*BSD News Article 22219


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!pipex!uknet!festival!castle.ed.ac.uk!richard
From: richard@castle.ed.ac.uk (Richard Tobin)
Subject: Re: Repeat of XFree question
References: <11OCT93.08302892@tifrvax.tifr.res.in>
Message-ID: <CEqIuz.8EE@festival.ed.ac.uk>
Sender: news@festival.ed.ac.uk (remote news read deamon)
Organization: University of Edinburgh
Date: Mon, 11 Oct 1993 13:30:34 GMT
Lines: 27

In article <11OCT93.08302892@tifrvax.tifr.res.in> bhiksha@tifrvax.tifr.res.in writes:
>2) The `delete' and `erase' functions on the xterm are not tied.
>  So, wheras ^H erases a character, it does not delete it and i get
>  error messages such as `cleax^H^Har not found'
>  ^? DELETES characters, but they remain visible on the screen and the
>  cursor does not move back.
>  They seem to swap roles depending on what i set an the erase character
>  in my stty.

You can choose which of ^H and ^? you want to erase characters using
"stty erase", but you already know that.  ^? has the advantage that
emacs uses ^H for help.  ^H has the advantage that various motif and
other X widgets expect it to be delete-previous-char, but you can
get around that in your .xdefaults.  If you choose ^?, you can make
the backspace key send it by putting this in your .xinitrc:

  xmodmap -e "keysym BackSpace = Delete"

To make the characters actually be erased from the screen, you need
to do "stty echoe".  Why this isn't the default I don't know.

-- Richard
-- 
"For thousands of years, [homoeopathic magic] was known to the sorcerors of
ancient India, Babylon and Egypt, as well as of Greece and Rome, and at this
day it is still resorted to by cunning and malignant savages in Australia, 
Africa and Scotland."  - J G Frazer, The Golden Bough