Subject: Re: Fw: backspace & delete
To: None <port-amiga@netbsd.org>
From: Georges Heinesch <ghmlist@ibm.net>
List: port-amiga
Date: 09/02/1998 07:24:00
Quoting box (01-Sep-98 13:33:30):

> $ stty erase ^H

> should sort you out.

Yes it does. Thanks.
But then the backspace key, which worked properly before, prints a ^?.

Is it not possible to assign the AmigaOS properties to the backspace
and delete key?

backspace: delete char left of cursor
delete   : delete char at cursor and sroll chars right of cursor 1
           position left

>>Starting NetBSD 1.3 with /bin/sh and the default optione ('ims',
>>which can be shown with 'echo $-').
>>
>>When using the backspace-key in the console, it deletes the
>>character left of the cursor, which is correct.
>>
>>When using the delete-key in the console, it prints '^H' instead of
>>deleting the character right of the cursor.
>>
>>When using the those keys in sh started from xterm, it's exactly
>>opposite! The backspace-key prints a '^H' and the delete-key deletes
>>the character left of the cursor.
>>
>>- Why is xterm acting opposite of the console?
>>
>>- How can I convince /bin/sh to react on the delete-key like AmigaOS
>>  does (deleting the character right of the cursor)?

--
Cu  Georges Heinesch, Luxembourg
    geohei@ibm.net - geohei@geocities.com
    http://www.geocities.com/yosemite/2480
    PGP 2.6.3i / 5.1i public key on request and on public servers

... Only happy at FL 370, Mach 0.74