Comment by GrinningFool

5 hours ago

Not specifically for those but I have to assume the pattern would work: you could intercept the keystrokes in a parent window or an overlay, then forward them to the correct child window once it's rendered.

So you implement a rendering system and an input queue on top of a drawing region. Sounds like you are implementing a Terminal emulator.