Closing braces `}` force exit 'ed'
Closed this issue · 6 comments
Sorry for bothering. I am not sure if this is the intended behavior, my build issue, or what else. As soon as I enter }
in 'ed' command, 'ed' will exit immediately:
@ ed
edit
}@
PDP-6 software from MIT and Stanford typically regards 175 and/or 176 as Altmode. I believe they used model 33 teletypes.
Thank you both for the detailed explanations!
Although I don't fully understand these information, I can tell this is not quite a bug, but a disagreement between character sets and how the characters are represented.
So, as regard to this issue, maybe we can close it if there are no fixes and no more discussions. However, is there any workarounds to input }
into a file?
Perfect! I know there are similar things for C, but didn't realize in the case of B. Thanks again, @philbudne !
Now I know the reason and a workaround, I will close this issue then (if there is no fix).
With e.g. ...
$ grep g2in unixv0.simh
set g2in ena
att -U g2in 12345
... in SIMH's config you can ...
~$ telnet localhost 12345
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connected to the PDP-7 simulator G2IN device
login: dmr
password: dmr
@ ed
edit
a
hello {[]}
.
p
hello {[]}
q
@ █
... use the braces without those effects.
I think, that's nicer than transliterating the braces.