My issue is a bit unusual, so I want to provide a short background. I was looking at old winners of the International Obfucated C Code Contest, and came across an entry written for the PDP-11 (the entry is here, for those interested). So, I searched for an emulator, which I found at http://simh.trailing-edge.com/, and booted it with UNIX v7 (from the same site). Again, for those interested, I found instructions on booting it at http://wandel.ca/homepage/unixdemo.html.
With that background in mind, here is my actual issue. As I was typing the program into ed, it was being funny about hash characters. They wouldn't actually save in the file. After a lot of research, I discovered it was emulating a physical teletypewriter (!), and since you couldn't backspace a character printed on paper, a hash meant "ignore the previous character".
So my question is this: How do I actually type a hash character?