> The emulation in a terminal emulator is pure graphics. That???s why it is > a terminal emulator for a graphical environment. The logic behind it are > just flags to serve xdraws(). You will have to rewrite everything in a > new environment, especially because of the event infrastructure in X11. > There is not much to modularize here.
I think all the sequence decoding logic is indendent of X, and almost of the sequence actions are also independent of X because they work in the line buffer and dirty buffer. In some way, these buffers are decoupling both parts. Regards, -- Roberto E. Vargas Caballero
