Skip to main content


nerdy computer stuff

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.

in reply to Jonathan Lamothe

nerdy computer stuff

Sensitive content

in reply to Isaac Ji Kuo

nerdy computer stuff
@Isaac Ji Kuo I guess it's less obvious in decimal. I didn't learn about hexadecimal and binary until many years after learning about ASCII.

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.