I'm trying to figure out a source code. It's an application that connect to a BBS through telnet. And it specifies a key_up by sending \033[A, key_pageup by 033[5~. I wonder what rule it use. Is that some kind of encoding or something belongs to telnet protocol? And how about sending a space?
These are ANSI escape codes.