I've long known that certain ASCII control sequences could be mimicked by holding control and pressing a key, e.g.: backspace is CTRL-H, newline is CTRL-J, but I was today years old when I learned that the ASCII control code is just the ASCII value of the key being pressed along with control bitwise and-ed with 0x1f.
It feels weird that I hadn't caught onto this sooner.
Isaac Ji Kuo
in reply to Jonathan Lamothe • • •Sensitive content
If you grew up with CHR$(13) and pressing CTRL-M, then yeah it should have been obvious.
But if not, then it's just one of those weird facts that you're not likely to have noticed.
Jonathan Lamothe likes this.
Jonathan Lamothe
in reply to Isaac Ji Kuo • •