But... then I must follow the Exos disassembly, isn't it?
I was thinking of an easy hack, some buffer at a fixed position and alike...
I think so.
I have 2 ideas what are ugly:
1st (I do not know if it works) disable the interrupt by DAVE (00h to port 0b4h) in your routine and write the escape sequence when it is done then enable the interrupt again (writing the value of address BFC5 to port 0b4h)
2nd create a small code which would run outside of interrupt and just write the escape sequence, in the mouse routine in interrupt you should get the stack position of returning address of interrupt, just insert your code address to that place and one place later the returning address, in this case when interrupt ends it will jump to your small ESC writer code, and if it is done then will continue where the code was interrupted
I think if there is a good solution not a hack like above to do this our EXOS experts Zozo and Bruce know it