cronvel / terminal-kit

Terminal utilities for node.js
MIT License
3.08k stars 198 forks source link

Multiple Documents in Same Terminal Screen #237

Open paul-bell opened 1 year ago

paul-bell commented 1 year ago

Thank you for this very nice piece of work!

When I create two Documents, e.g.,

const doc1 = term.createDocument( {
    palette: new termkit.Palette()
});

table1 = new termkit.TextTable({
    parent: doc1,
    cellContents: [ ET CETERA

const doc2 = term.createDocument( {
    palette: new termkit.Palette()
});

table2 = new termkit.TextTable({
    parent: doc2 ,
    cellContents: [ ET CETERA

The rendering of the second table "clears" that of the first. Each works fine by itself.

Is there a way for multiple Documents to co-exist in the same terminal screen?

Thanks very much.

-Paul