in reply to Re^5: Regex arrow key problemin thread Regex arrow key problem
According to others in this thread, it's
"\e", then "[", then "D" ==eq==> "\x1B", "\x5B", "\x44" "\e", then "[", then "C" ==eq==> "\x1B", "\x5B", "\x45" [download]
(Each of the three values are returned by different calls to ReadKey.)
Based on what you said you have,
"\e[D\n" ==eq==> "\x1B\x5B\x44\x0A" "\e[C\n" ==eq==> "\x1B\x5B\x45\x0A" [download]
Update: Fixed first half.