[haiku-development] Re: Terminal escape codes

Adrien Destugues wrote:
> arfonzo is currently trying to improve Terminal compatibility with various 
> BBS. He noticed that the escape sequences for arrows are now ESC + O + 
> ABCD instead of the usual ANSI ESC + [ + ABCD.
...
> Is there any problem reverting to the ANSI escape code for moving cursor ?

Note that we could be talking about two different things here, because
a cursor and a cursor key are two very different things:
1. the escape sequence sent to the TTY device when you press a cursor key
2. the escape sequence that causes the cursor to move when received
from the TTY.

For the cursor keys, both <esc>[A and <esc>OA etc. are correct, depending
on the current mode.  Past that, I am a little fuzzy - by some accounts,
this is the `application keypad mode' setting that also turns the numeric
keypad into function & arrow keys.  I am not sure that's right (though may
be widely implemented anyway), and there may be another mode involved.

Cursor movement is <esc>[A etc.

        Donn

Other related posts: