<div dir="ltr"><div class="gmail_extra">Okay, well I got some stuff done. I'm able to create a fully working terminal application using fpc, but when I try to incorporate it into a TWinControl there are some problems:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://cache.getlazarus.org/videos/vte-control.mp4">https://cache.getlazarus.org/videos/vte-control.mp4</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Notably, I believe the LCL gtk2 widgetset makes some core assumptions about the internal memory layout of any PGtkWidget that do not apply to a PVteTerminal. This is causing access violations when it interacts with the LCL as the LCL tries to access structures and that do not exists.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Here is the code for the TTerminal control (designed to work only on gtk2). Maybe someone could recommend a fix?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://pastebin.com/y8wFvKsg">https://pastebin.com/y8wFvKsg</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">A code archive for both projects here:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://cache.getlazarus.org/archives/simterm.7z">http://cache.getlazarus.org/archives/simterm.7z</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>