I am parsing keyboard input via
read -n 1 and I haven't found a way to distinguish between an actual key-press of the Escape key and the first Escape character (byte) of a control sequence generated by some other key-press, eg. LEFT, RIGHT...
I don't need the Escape key during the
read, so disabling it should solve the problem. Is there some way to disable or re-assign just the Escape key in a localized manner? ...for just the current terminal, and for just the current script.