Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
billforsternz
· 7mo ago · 0 comments
I is tab ('\x09' or '\t') and J is new line ('\x0a' or '\n'). These Ctrl combinations follow a predictable linear mapping to the control character section of the ASCII table. Basically Ctrl subtracts 0x40, so I is 0x49, Ctrl I is 0x09.
Comments
[–]
__mharrison__
7mo ago
TIL: Ctrl subtracts 40.
(28 year emacs user)
[–]
pjz
7mo ago
on a linux box try `man ascii`
[–]
__mharrison__
7mo ago
There are lots of man pages. This one doesn't mention Ctrl being minus 40. Not sure what the point is.