This is a somewhat semi-recurring topic.
So let's get a few things clarified:
For output *to* a terminal, using ASCII, there are a bunch of control
characters that do different things.
BS (backspace, 0x08) will normally move the cursor one step to the left,
if not at the left edge. It does not affect the character under the cursor.
DEL (delete, 0x7f) normally do nothing.
When typing on a terminal, there is commonly a key marked with <- or <x]
or something similar above or near the enter/return key. This key on
every DEC terminal sends a DEL to the host computer. Many other
terminals also sends DEL, some sends BS, and some terminals even have it
configurable.
Most notably, the IBM PC usually sends a BS when hitting that key.
Now, next question is what happens at the host OS when receiving
different ASCII characters.
Pretty much all DEC operating systems ignore BS, or at most echo it.
Which means that if you send a BS, your cursor might actually move left,
but from the OS point of view, you have not deleted any of your input,
but have in fact added a BS to the line.
Most DEC operating systems use DEL to signify that you want to delete
the character most recently entered. Or delete to the left, if that
makes more sense.
Unix, traditionally, used # for this function (as mentioned below). But
since Unix was often run on DEC machines, there were often DEC, or DEC
compatible terminals involved as well, which commonly sent DEL. So Unix
sortof adopted DEL for deleting to the left as well, and usually
ignored, or just echoed BS just as DEC OSes did.
When the IBM PC became popular, a sudden shift towards using BS for
deleting to the left happened, which is where we are today.
Finally, within some Unix shells, there is some attempts at being nice
and accepting both BS and DEL in order to delete to the left, but that
does depend on which shell we are talking about.
With Unix, it is otherwise the case that you can actually define which
character you want to use to delete to the left. See stty(1).
Johnny
> * 211bsd allows backspace and then type over
> * unix5 and unix6 don’t recognize backspace at all
> * unix7, sysiii, and sysv seems to treat backspace as a line feed
>
> The other OSes seem to recognize the backspace (either destructive
> or nondestructive). I also have no problem with backspace on my PiDP-8.
>
> I typically ssh into my PiDP-11 from my Mac or Ubuntu machine, but
> have tried the following terminals. In all cases I can’t get
> backspace to work.
>
> * Mac Terminal
> * iTerm2 on Mac
> * Ubuntu terminal
> * PuTTY from Windows
> * xterm from the Pi and Ubuntu
> * Termius from iPad
>
> I have read that a common problem is that Unix needs to receive the
> backspace as ^? instead of ^H. So I tried configuring that in the
> terminals where possible, but it didn’t help.
>
> Although it is of course still possible to work without it (just
> like they did back in the Teletype days), it makes exploring and
> experimenting very tedious.
>
> Am I missing something to try? I am grateful for any suggestions.
>
> Thanks!
>
>
> PS - My normal keyboard layout and locale is Swiss German. Not sure
> if that can affect this in any way. I tried setting to US Querty and
> didn’t notice any change.
>
> --
> You received this message because you are subscribed to the Google
> Groups "[PiDP-11]" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
pidp-11+u...@googlegroups.com
> <mailto:
pidp-11+u...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/pidp-11/ab40a1fe-a76d-42f8-9709-5e09d160cb4bn%40googlegroups.com
> <
https://groups.google.com/d/msgid/pidp-11/ab40a1fe-a76d-42f8-9709-5e09d160cb4bn%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email:
b...@softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol