{#each getTerminals().tabs as tab (tab.id)}
activateTab(tab.id)} onkeydown={(e) => { if (e.key === 'Enter' || e.key === ' ') activateTab(tab.id); }} >
{tab.title}
{#if getTerminals().tabs.length > 1}
closeTab(tab.id, e)} >×
{/if}
{/each}
addTab()}>+
{#each getTerminals().tabs as tab (tab.id)} {#if getTerminals().mounted.has(tab.id)}
{/if} {/each}