Yea; the dedicated separate "arrow keys" on the keyboard have always been a mess, because there aren't really ASCII codes for them.
Well, there are, but there would be no way to differentiate between arrow keys and Control + H, J, K, & L. And people/vendors wanted separate "arrow" keys. So ... escape codes on input, it is! And that "makes a mess" of command line input that does not interpret the escape codes.
.
They are ANSI escape sequences
(a different standard)