I'm writing a Go program to communicate with a server over Telnet. It has an interactive little program (which I have heard can be made with something called "curses"--no familiarity there).
While I can send "enter" with the likes of " "
I find myself needing to send an "up" key. How do I write a literal "up" key in my Go code, with any and all appropriate escape sequences, in a way that will send properly to the server?
\x1b
is the escape sequence. CSI codes per this worked, so it was \x1ba
to move the cursor up one row.